I''m looking for an event handler in Prototype (or plain old JavaScript) similar to onContentReady() in the YUI library: (see http://developer.yahoo.com/yui/examples/event/event-timing.html) How can I implement this? If I''m not mistaken, my testings showed the document.onLoad() happens too early (as soon as the page loads it fires, even before some dom elements are on the page and accessible). Thanks in advance, jaw --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thomas Fuchs
2007-Sep-22 08:51 UTC
Re: How to fire an event when the page completes loading?
In 1.6: document.observe(''contenloaded'', function(){ ... }); best, thomas Am 22.09.2007 um 04:38 schrieb JAWspeak:> > I''m looking for an event handler in Prototype (or plain old > JavaScript) similar to onContentReady() in the YUI library: (see > http://developer.yahoo.com/yui/examples/event/event-timing.html) > > How can I implement this? If I''m not mistaken, my testings showed the > document.onLoad() happens too early (as soon as the page loads it > fires, even before some dom elements are on the page and accessible). > > Thanks in advance, > > jaw > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thank you very much On Sep 22, 1:51 am, Thomas Fuchs <tho...-9D208sng4xU@public.gmane.org> wrote:> In 1.6: > > document.observe(''contenloaded'', function(){ ... }); > > best, > thomas > > Am 22.09.2007 um 04:38 schrieb JAWspeak: > > > > > I''m looking for an event handler in Prototype (or plain old > > JavaScript) similar to onContentReady() in the YUI library: (see > >http://developer.yahoo.com/yui/examples/event/event-timing.html) > > > How can I implement this? If I''m not mistaken, my testings showed the > > document.onLoad() happens too early (as soon as the page loads it > > fires, even before some dom elements are on the page and accessible). > > > Thanks in advance, > > > jaw--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---