Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm using LWP::Simple to retrieve a number of pages based on user input. Because of the complexity of each page, my "roll a six to start" host, and the complex regexs I'm using, it takes a while. A long while. A very long while.
Now, I'm worried that Joe User will either:
- Get bored and go away
- Have his connection time out
So I'm looking to keep the user informed as to how the process is doing.
I've tried using JavaScript to put status messages into text boxes at the top of each page, but the Perl script seems to emit only "chunks" of text and doesn't send text line-by-line, so the status boxes don't change. Could this be related to Cgi-wrap? Or is it because Perl's waiting for the complete page-retrieval subroutine to finish before printing the text?
Thanks ppl!
stamps
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Keeping visitors waiting
by shotgunefx (Parson) on Jul 25, 2001 at 21:25 UTC | |
by stamps (Initiate) on Jul 25, 2001 at 21:55 UTC | |
Re: Keeping visitors waiting
by merlyn (Sage) on Jul 26, 2001 at 03:52 UTC | |
Re: Keeping visitors waiting
by cLive ;-) (Prior) on Jul 26, 2001 at 00:00 UTC | |
Re: Keeping visitors waiting
by toadi (Chaplain) on Jul 25, 2001 at 21:32 UTC |