Reply to Re: Using AJAX, how can the page get state infomation from backgroud PHP script?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация