Posted by Marvin Zhang on 04/14/07 04:26
> You might want to look at Comethttp://en.wikipedia.org/wiki/Comet_%28programming%29
> Comet is a programming technique that enables web servers to send data
> to the client without having any need for the client to request it. It
> allows creation of event-driven web applications which are hosted in
> the browser.
>
> Another solution is to not use AJAX, but a hidden iframe, load your
> page into the iframe and while the php is running make it output
> javascript that will update the status on the main page.
>
> Example:
>
> for($x = 0; $x < 10; $x++) {
> echo '<script>window.parent.updateStatus('.$x.');</script>';
> flush();
>
> }
>
> Check here for more info on iframe remote scripting
> http://developer.apple.com/internet/webcontent/iframe.html
Thanks for your feedback. Actually I never heard of Comet, and know
little about iframe. It seems Comet is a great tool. I'll look into it.
[Back to original message]
|