@Jeffrey: For script tags in the source of the main page, it shouldn't be a problem no matter where you put the script tag. I'm assuming he's loading script after page load.
-- T.J. On Mar 25, 1:28 am, Jeffrey Peck <[email protected]> wrote: > Put this in the document head and it should work every time. I have > never had a problem with dom:loaded, and it just so happens that I > always put it in the <head>. If I had to guess, that's the issue. > > - Jeff > > On Mar 23, 2010, at 12:40 PM, John wrote: > > > > > I am using > > > document.observe("dom:loaded", function() { > > ... > > }); > > > to hook into the dom loaded event, but I'm finding that if the dom > > loaded event has already fired my code is not executed. So I want to > > test if the dom is already loaded so I know whether it immediately > > execute or add this observe event. Is there a way to test if the dom > > is already loaded? > > > Thanks. > > > -- > > 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 > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en > > . -- 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.
