Re: Re: Delaying $(document).ready() in jQuery until php script finish

From: Date: Sat, 12 Mar 2011 06:21:42 +0000
Subject: Re: Re: Delaying $(document).ready() in jQuery until php script finish
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-311793@lists.php.net to get a copy of this message
I think the OP is having both PHP & JS codes mixed and scattered all over the page. If chunked-encoding used without any ob* implementation, then that's the problem he'll experience. Richard, I recommend to put the $(document).ready() and any JS scriptlets within <body></body> tags at the very bottom of the HTML document just right before </body>. This would allow the mixed PHP/HTML to finish without creating problems for your JS code(s). The other solution is implement output buffer using ob* functions. Regards, Tommy

« previous php.general (#311793) next »