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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.