Hi Monks,
I'm working on a CGI script. The user submits a very large quantity of text via a text box in a form. Once I get that data, I parse through it and extract from it a list of files that I need to create and the data that goes in them (some other processing on the data goes on as well). I write the files (printing a success/fail message after each), then put up another form. The problem is that there can be a *LOT* of data coming in from the user, and his browser may time out before I can parse out all the data and write the files.
What I'd like to do is either:
1.) Print a page that says something like "Processing, please wait...this page will refresh in five seconds." and have that page refresh until the file writing is done, then display the success/fail messages and the next form. Or if that can't be done,
2.) Print up the form and have the success/fail messages continually coming in and being displayed on the browser after it until it's done.
Any idea how this can be done? I imagine that I'd need to fork the processing off as one process and somehow keep tabs on it's progress or something.
Thanks!
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.