On 10/07/2009 10:33 AM, [email protected] wrote: > How can I update my web page with status from this run mode while the > subprocesses are running?
There's a couple of different ways this can be done. The best is definitely not the easiest but it means creating a separate offline job queue that can run these processes and keep their status in a shared location (like a DB, etc). Then your rm just adds a job to the queue and returns. Then when you're checking on the status via Ajax you need to have another rm that simply checks on the status of the job and returns a flag that could mean success, failure, or try again later (still working). Unfortunately, since you are using Ajax, you can't use the standard NPH approach and just periodically print something to the browser while it's working. Ajax requests don't return (in the javascript) until the entire request is done and it will probably timeout on you. -- Michael Peters Plus Three, LP ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################
