Problems? Is your data what you think it is? | |
PerlMonks |
Emulate CGI "server push" to show real time status of CGI script for all browsersby hackdaddy (Hermit) |
on Sep 30, 2003 at 23:14 UTC ( [id://295471]=perlquestion: print w/replies, xml ) | Need Help?? |
hackdaddy has asked for the wisdom of the Perl Monks concerning the following question: Hi. For a CGI script I am creating on Apache/Win32, I need to emulate CGI "server push" to show real time status of CGI script by logging progress to the client. As the CGI script runs, I need to show to the user what the script is doing. I need to support all browsers: IE, Netscape, and Opera. I would like to be able to update the contents of a textarea dynamically. Is is possible using hidden frames and Javascript? What is Javascript stream-emulation? IE does not support CGI server push and so I need to use a technique that will work for all browsers. Are there CGI widgets I could use for this purpose? Any modules or tools I am overlooking? The real problem is that I am using WWW::Mechanize to automate other web sites from the script. I do not want the client to time-out waiting for the CGI script to complete. How do I keep-alive the Client connection to never let the user see a time-out? I also do not want to slow down the scripts by creating a lot of traffic. I am currently using using POE::Component::Client::HTTP to simultaneously check the response times of all the web sites I will automate. My manager does not want the user to think the script has hung or is not responding. I am also looking into using LWP::Parallel::UserAgent. Is LWP or WWW::Mechanize thread-safe for using 5.8.0 threads? Is threading on CGI worth the effort? Any help is appreciated. Thanks. Hackdaddy
Back to
Seekers of Perl Wisdom
|
|