Taylor Strait
2006-Dec-29 08:35 UTC
replace_html adding observe_field gives non-fatal error
Using this function: render :update do |page| page.replace_html ''state_options'', :partial => ''state_options'' page.replace_html ''city_options'', :partial => ''city_options'' end on this partial: <div id="state_options"> <p> <select name="state_id" id="state_id"> <%= options_from_collection_for_select(@states, :id, :name) %> <%= observe_field "state_id", :url => {snip!} :with => "state_id", :update => "city_id" %> </select> </p> </div> generates an "Illegal Character" error in the Firebug java console. However, my application still runs fine. Without Firebug, the user would never know. This seems to be a result of dynamically adding a field observer. Is there any reason I should be concerned about this? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---