It does work in an external file, but once per page load only. So if I fire an ajax form submission (and the same form is returned in that ajax response), then attempt to fire it again (without reload the entire page) it seems to fail.
It only works in that scenario when I have the dom:loaded observer under the form code (which is also returned in the ajax response) On Jan 24, 1:49 am, "Justin Perkins" <[EMAIL PROTECTED]> wrote: > On Jan 23, 2008 4:06 AM, Michael Sharman <[EMAIL PROTECTED]> wrote: > > > Although this works find, I would have liked to find a way where my > > markup is clean of any javascript and the default Observer worked from > > the linked .js file (as it does on the first ajax request). > > The dom:loaded observer will work fine in a linked JS file. That is > typically where you would put them, or the head of your HTML document. > > -justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
