Is there a simple way of being notified as soon a new page starts loading (as soon as the user clicks on a link for example, or submits a form) without having to manually observe click events for all the links in that page? (I''m talking about normal links, NOT about links that fire Ajax requests) thanks --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, maybe observing the unload event of the window object is what you need. Greetings, Clemens zeno schrieb:> Is there a simple way of being notified as soon a new page starts > loading (as soon as the user clicks on a link for example, or submits > a form) without having to manually observe click events for all the > links in that page? > > (I''m talking about normal links, NOT about links that fire Ajax > requests) > > thanks--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
this, or observe the body element and let the even bubble up On Aug 18, 8:14 am, Clemens <webpl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi, > maybe observing the unload event of the window object is what you > need. > > Greetings, > Clemens > > zeno schrieb: > > > Is there a simple way of being notified as soon a new page starts > > loading (as soon as the user clicks on a link for example, or submits > > a form) without having to manually observe click events for all the > > links in that page? > > > (I''m talking about normal links, NOT about links that fire Ajax > > requests) > > > thanks--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
That is correct, the "unload" event is what you''re looking for, here is a compatibility chart for event types, looks like the unload event is supported by everyone but opera. http://www.quirksmode.org/js/events_compinfo.html On Aug 19, 4:47 am, CDUDE <celerond...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> this, or observe the body element and let the even bubble up > > On Aug 18, 8:14 am, Clemens <webpl...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > Hi, > > maybe observing the unload event of the window object is what you > > need. > > > Greetings, > > Clemens > > > zeno schrieb: > > > > Is there a simple way of being notified as soon a new page starts > > > loading (as soon as the user clicks on a link for example, or submits > > > a form) without having to manually observe click events for all the > > > links in that page? > > > > (I''m talking about normal links, NOT about links that fire Ajax > > > requests) > > > > thanks--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---