[Proto-Scripty] Re: Test if Dom is ready

2010-03-26 Thread Diego Perini
he dom is already > loaded. I went ahead and coded it to check document.loaded. > > -Original Message- > From: prototype-scriptaculous@googlegroups.com > [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of T.J. Crowder > Sent: Thursday, March 25, 2010 12:21 A

RE: [Proto-Scripty] Re: Test if Dom is ready

2010-03-25 Thread Thompson, John
: Thursday, March 25, 2010 12:21 AM To: Prototype & script.aculo.us Subject: [Proto-Scripty] Re: Test if Dom is ready @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

[Proto-Scripty] Re: Test if Dom is ready

2010-03-25 Thread T.J. Crowder
@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 wrote: > Put this in the document head and it should work every time.  I have   >

[Proto-Scripty] Re: Test if Dom is ready

2010-03-24 Thread T.J. Crowder
Hi, I'd actually like to see Prototype handle this edge case for you, but as far as I know it doesn't. There's an *undocumented* way you can check: The `document.loaded` property. But that's undocumented and so subject to change from dot release to dot release. (Not necessarily a big problem, it