[Proto-Scripty] Re: Is there a standard Ajax Event ?
Hi, For Ajax calls *via Prototype*, there's Ajax.Responders[1]. I'm pretty sure there's no generic event for all direct XHR uses. [1] http://prototypejs.org/api/ajax/responders HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jul 24, 6:28 pm, Joachim H. Skeie boem...@gmail.com wrote: Hello, I would like to be able to execute code whenever an ajax event is triggered. The reason for this, is that I need to know that the DOM is finished loading when I first execute the code. I have my code inside the document.observe('dom:loaded'... I would also llike to be able to execute some JavaScript code on a ajax success, something like document.observe('ajax:success'... Does anyone know if this is available in Prototype by default ? --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Is there a standard Ajax Event ?
Not available but planned. Best, Tobie On Jul 25, 1:46 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, For Ajax calls *via Prototype*, there's Ajax.Responders[1]. I'm pretty sure there's no generic event for all direct XHR uses. [1]http://prototypejs.org/api/ajax/responders HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jul 24, 6:28 pm, Joachim H. Skeie boem...@gmail.com wrote: Hello, I would like to be able to execute code whenever an ajax event is triggered. The reason for this, is that I need to know that the DOM is finished loading when I first execute the code. I have my code inside the document.observe('dom:loaded'... I would also llike to be able to execute some JavaScript code on a ajax success, something like document.observe('ajax:success'... Does anyone know if this is available in Prototype by default ? --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---