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:24

> - Have your original PHP store it's "status" information in a Session
> variable says $_SESSION["status_data"] which is updates as it runs
>
> - Have a timer on the Javascript side which creates a 2nd Ajax call
> to a new getstatus.php, which then reads the status from the session and
> sends back to the browser in this 2nd Ajax call.
>
> Not done much Ajax, I am assuming you can make another ajax call whilst
> one is currently running??
>
> You might need to send the PHP session id back to the server when you
> call getstatus.php, not sure.
>
> Let us no how you do :)

Thanks for you idea. I believe this should work. I'll try next week
and give result here.

[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

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