I've been having the same difficulty...  Although I'm not using Rails 
(I really wish I was).

I'm using AJAX.Updater to make calls which in turn populate various 
DIV's with data.  However, none of the JavaScript gets executed 
(despite evalScripts being true).

I'm trying to use AJAX.Updater to populate a DIV with a Dojo widget 
but all I'm getting is plain text and the widget won't render.

I think this is very common and all I've seen are little hacks to get 
code to work but I can't see to get any of them working correctly.

Take care,
-Matt

On Jan 26, 10:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to