[jQuery] Re: document.ready in an ajax response

2007-10-01 Thread Curtis Spencer
Arrix, Thanks for the reply. So, in an ajax response snippet, does it make the most sense just to make javascript calls directly. Could there be an issue with the DOM in the response snippet not being fully loaded before the script functions are called. I tried doing something like this in the

[jQuery] Re: document.ready in an ajax response

2007-09-30 Thread Arrix
document.ready won't trigger anymore after the page has been loaded. See http://dev.jquery.com/ticket/904 So avoid $(document).ready() in ajax response snippet. new function() { alert('Hi') } You are actually creating a new instance using an anonymous constructor. The constructor is invoked