[jQuery] Re: Ready event when loading a page with ajax

2009-04-23 Thread ken
#2 will probably be your best bet. I am pretty sure that if the page you're retrieving has script blocks, they'll be parsed out and inserted into the head of the document -- before the actual HTML is injected into the body. On Apr 23, 9:30 am, Brandon brandon.goo...@gmail.com wrote: Greetings

[jQuery] Re: Ready event when loading a page with ajax

2009-04-23 Thread James
jQuery.ready is executed when the main document is loaded completely. Loading markup from a separate AJAX call from the main document is not included. As ken mentioned, option #2 is probably the best way to go. #1 will not always work (might not even work at all) because you're racing against the