search for: find_all_by_state_id

Displaying 4 results from an estimated 4 matches for "find_all_by_state_id".

2006 Aug 16
8
Multiple (AJAX) Observers on the Same Field and MSIE
I have been using multiple observers, i.e., observe_field(), on the same input field and relying on them to execute in the same order that they appear in the page. This has been working fine in FireFox, but it does not seem to work in MSIE; the requests come in and are processed in a different order. Now, I''ve always been a little hesitant about using this technique, but it always
2006 Aug 16
0
Multiple observer
...uot;, :update => "locality_container", :url => { :action => :select_locality } :with => "''id=''+value", :on => "changed") %> </td> Controller Code def select_city @cities = City.find_all_by_state_id(@params["id"]) @html = "<select id=''city_id'' name=''locality[city_id]''>" @html += "<option value="">Select City</option>" @cities.each do |@city| @html += "<option va...
2006 Aug 17
0
AJAX - Having Multiple SELECT (Drop Down), and dependency
...uot;, :update => "locality_container", :url => { :action => :select_locality } :with => "''id=''+value", :on => "changed") %> </td> Controller Code def select_city @cities = City.find_all_by_state_id(@params["id"]) @html = "<select id=''city_id'' name=''locality[city_id]''>" @html += "<option value="">Select City</option>" @cities.each do |@city| @html += "<option va...
2006 Apr 12
22
Dynamic Select Box
Hi, I''m new to rails/ruby having come from PHP and am just starting to get my head round how easy it can be :) However, can anyone point me in the right direction for dynamicaly updating a select box based upon the choice of a previous select box, without a page refresh. Any and all help greatly appreciated. Thanks -- Posted via http://www.ruby-forum.com/.