braveluxan has asked for the wisdom of the Perl Monks concerning the following question:
Greetings fellow monksters!
I am trying to write a progress bar of sorts just to let the user know something is happening. I have the the following code that works fine AS LONG AS THIS SCRIPT IS CALLED DIRECTLY from the browser. Meaning if I type in the URL then the script will run and a "." will show up every second.
BUT, if I make this script the <form action=progress.cgi method=post> from another script then when there will be a 10 second pause and the ".........." string is written all at once!
What gives? Im running Apache 1.3.14 so nph is no longer and issue .. yes? Perl: 5.005_03 built for sun4-solaris
Thanks!
# # progress.cgi # $|=1; print "Content-Type: text/html\n\n"; for ($i=1;$i<=10;$i++) { print "."; select(undef,undef,undef,1); }
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: Unexpected Output
by merlyn (Sage) on Jul 12, 2002 at 20:46 UTC | |
Re: Unexpected Output
by tadman (Prior) on Jul 12, 2002 at 22:54 UTC | |
Problem might be with browser behavior?
by BorgCopyeditor (Friar) on Jul 12, 2002 at 20:45 UTC | |
Re: Unexpected Output
by tjh (Curate) on Jul 13, 2002 at 16:14 UTC | |
by braveluxan (Initiate) on Jul 15, 2002 at 14:48 UTC |
Back to
Seekers of Perl Wisdom