I'm trying to change over from Rails 1.1.6 to 1.2.1 and have discovered
that either something is wrong with Prototype of else something has
changed that I am not aware of and cannot find documentation on. (I
just joined this group, so if this has already been cussed and
discussed here or in another list then please point me in the right
direction.)
I am trying to use the "replace_html" feature, and instead of prototype
processing the generated javascript, I get a big load of "try
{Element.update( ...lots of javascript garbage... ) throw e }" dumped
onto my screen in place of where the updated html should be.
I encountered the same problem when I tried to work around it by using
"replace" to swap out the whole element with updated innerHTML. The
only way I could get around this problem was to use "replace" while
changing the element id every time. (Which results in more code than
should be necessary)
Basically, whenever I try to update an element, the javascript doesn't
get picked up by prototype unless the id of the target element gets
changed in the process.
Is this a bug or am I completely missing something here? I've only been
using Rails for a couple months now, so I'm a bit new at this...
Thanks,
-Reuben
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---