Hi james, a) the answer is on doc page: http://www.prototypejs.org/api/ajax/updater
it says that "The onComplete callback will get invoked after the update takes place.", so the external load file are already loaded and element updated b) you should have inside the response a script tag that contain the call you want. You'll have the evlscript set to true, so it should work. -- david On 11 mar, 12:02, James <[email protected]> wrote: > so normally you can use > Event.observe(window, 'load' > to fire some js after loading, secure in the knowledge that all > external js files have been loaded and all elements have been set up. > > Whats the equivalent for firing an event after an > new Ajax.Updater('modal-ajaxdiv', url, { evalScripts:true }); > from inside the returned content? > > yes, I've seen onComplete callback, but > > a) is that fired after external js files are loaded, etc? > b) for the sake of not having a spralling code base, i'd prefer to > fire it from inside the returned content. > > thanks in advance, > James --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
