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]
|