[jQuery] Re: Running script onLoad instead of ready

2008-07-10 Thread Vincent Robert
If you want code to execute before the page is ready, the you should just inline it in your script tag. Note that you won't be able to access or modify any DOM component of the page, all you can do is append some new DOM nodes at the beginning. html head script

[jQuery] Re: Running script onLoad instead of ready

2008-07-09 Thread Cloudream
$(window).load On Jul 9, 10:16 pm, benjam [EMAIL PROTECTED] wrote: Maybe I'm missing something totally obvious, but I was trying to get an alert to fire after some of the page loads, (but before ().ready). I tried the following: $('body').load( function( ) { alert('Hello World'); } );

[jQuery] Re: Running script onLoad instead of ready

2008-07-09 Thread MorningZ
Just to note on: I was trying to get an alert to fire after some of the page loads, (but before ().ready) 'load' is always going to fire *after* 'ready'