similar to: On 'Back' button of browser, drop down doesn't get refreshed

Displaying 20 results from an estimated 1000 matches similar to: "On 'Back' button of browser, drop down doesn't get refreshed"

2010 Feb 24
2
How to read percentage and currency data?
I'm struggling to find any help on this seemingly simple question - how does one read data with percentage (%) or currency (?,$ etc.) signs? When I try to read a data file which has any of those symbols in the data fields, they are read as characters rather than values. Is there a function or library which can deal with such values? As an example, I use this sample from one of chinna's
2005 May 24
2
Deleting from a 'has_many' collection doesn't set the foreign key to NULL
Hi all, I have an Active Record problem. Having this classes declaration. class Sale < ActiveRecord::Base has_many :sale_line_items, :class_name ''SaleLineItem'' ... end class SaleLineItem < ActiveRecord::Base ... end When I try to delete an item in a Sale class method from sale_line_items (sale_line_items.delete(li)), it extracts ''li'' from
2006 Jun 30
7
javascript woes with radio button groups
Ok! So I have this survey project I''m working on where there are a list of questions but only one shows up at a time. That part''s easy. And, it is fully functional as we speak (and I think even ''live'') however..... My boss wants to be able to have the survey go to the next question when a user selects an answer. This part is easy.. except..... IE
2005 Dec 29
3
Post problem with select lists
hey, i have this problem how come i always get -1 for the select list?? rhtml First, select a client. <select id="client_id" name="client[id]" onChange="submit();" > <%= options_for_select(@client_options, @client_id.to_i) %> </select><%= @client_id %> controller if @request.post? if @request.xml_http_request? #called by ajax,
2014 Nov 06
0
Для руководства по запросу на металлопрокат, цена с доставкой.
???? ????????????? ? ???????? ?? ????? ??? ??????! ? ????????? ? ???, ?? ????, ???????? ??? ???. ?????? ??????, ???????????, ???????? ? ??????? ??????. ??? ???????? ????? ???????? ??? ?????? ? ???????. 7 ???????? ??????? ? 32 ?????????? ?????? ?? ??????. ??? ?????? ????? ???????? ?? ?????: 4031682v at mail.ru ????? ????? ??????? ?? 8(499)403-1682 ? ????????? ????? ???????? ???:
2007 Mar 05
4
about find the solution
If I want to find out the soltion of X1,X2 that min(3X1+2X2+X1X2) subject to 20<=X1+3X2<=50 10<=X1 which function or package can I use? Thanks.
2006 Jan 12
0
Re: RE: Re: Re: Auto refreshing a page based on select chang
> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of > Kevin Olbrich > Sent: Wednesday, January 11, 2006 3:14 PM > To: rails@lists.rubyonrails.org > Subject: [Rails] Re: RE: Re: Re: Auto refreshing a page based > on select chang > > > Daniel Berger wrote: > > > <%=
2007 Jan 25
2
React on select_tag (onchange)
Hi, I''m new in developint rails (but I love rails). I would like to react on changing a field in the view (no model field) from a selection box to show the number of rows (which I used in the controller). In the controller I read the params-hash: ... @rowsperpage = params[''rowsperpage''].to_i ... In the view I have the field, where I like to react directly. ...
2009 Apr 12
3
Multi-button form
It cannot be this difficult, especially in rails. Here is my form code in a partial for the index action of a controller: <% form_tag({:controller => controller_name, :action => ''index''}, {:method => :get, :class => ''form''}) do %> <div class="columns"> <div class="column left"> <p>
2010 Dec 22
1
'No route matches' error with select_tag
Rails 3: I have a view books/:id/show.html.erb - in the view, I have a form with a select tag to pick a template, that on dropdown should submit the form which rerenders the page based on the selection: <%= form_tag book_path(@book) do %> > > <%= select_tag "template[]", >> options_for_select([["Template1","template1"], ["Template2",
2008 Dec 02
1
form_for with partial using do |@f|
Is it possible to pass this FormBuilder object to a controller and then back to a partial? I have a form rendering a partial that i would like to update with a call to my controller based on user selectable parameters, but when the AJAX comes back, i get this error message because i cannot pass a form builder object between the controller and the view: "undefined method
2005 Sep 20
1
radio buttons and event obvsering
Hi, I made a little utility class that turns on a particular div when a radio button is clicked - a RadioButtonDivToggler. As the name hopefully suggests, when a radio button from the same group is clicked, a different div is made visible and the others are hidden. In essence, it toggles on (makes visible) the div associated with the radio button from a group that you clicked. However,
2007 Jan 22
0
dropdown list
hi i am new to ruby and i have installed ferret for search using text box for search by the string in the text box insted of that i am trying to implement a drop down list,with the selected item in the drop down it should search. problem hear is that the search is not going by the item please help me The code is: <input type="text" name="query" value="<%= h
2006 Jul 29
0
displaying select value and debugging RoR application
Folks, I am running into the following problem. I have a company model that has_many addresses and address belongs_to company (it also belongs to a User model but I assume that is irrelevant to this issue). I am in the list_companies view of the company_controller. When the user selects a company from the drop down I dynamically update the cities dropdown for the cities that the selected company
2006 Feb 07
1
onHover: can u explain me this function ?
In Sortables, we have a function onHover: onHover: function(element, dropon, overlap) { if(overlap>0.5) { Sortable.mark(dropon, ''before''); if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering
2005 Jul 25
0
Code for onChange is missing
Hello, onChange as advertised for Sortable cannot work, as there is code missing. // onChange event handler element.sortable = {}; element.sortable.onChange = options.onChange; needs to be added to Sortable.create() to make it work. Bye, Martin
2006 Jun 14
4
Select box onchange problem
Hi, i''ve got the following problem. I have a check_box witch shows a list of varieties. Now i want to call a action when the user changes his selection. (the method to be called, will store the selection from the user). This is my code: <%= select(''variety'', ''variety_id'', Variety.find_all.collect {|c| [c.description, c.id]},
2006 Jun 06
1
Getting value of form using Ajax (and problems with Safari)
I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2006 Jul 20
0
Getting joined collections on a form
Greetings, I''m looking for suggestions on how to simplify getting customer addresses on a form: I''m jumping between controller and view several times; alternating between rhtml and rjs, in order to display customers and their addresses on an invoicing form. It''s very messy. I have a one to many relationship between Customer and Addresses, each customer has one or more
2006 Jun 06
0
Get value from form using rjs, and problem with Safari
Hi, I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input