Hi i am using prototype.js in my rails app via observe_field and RJS.
For the most part it works except when I attempted to update some HTML
elements at the end. On the controller side, I am using the following
bit of code

render :update do |page|
  page.replace_html 'field2', h(field2)
  page.replace_html 'field3', h(field3)
  page.replace_html 'field4', h(field4)
end

In IE7, I got a Javascript error dialog box "rjs error: [object
Error]". I also got a follow-on error dialog box showing all 3
elements "Element.update("field2", "value...");
Element.update("field3", "value..."); Element.update("field4",
"value...");" Alas but field4 never got updated, and field3 has both
field3 and field4 values. Can anyone help? Thanks in advance for your
help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to