Hi!
I have a small example script to describe my problem.
#!perl -w
$|=1;
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Test</TITLE>";
print "</HEAD><BODY><H2>Menu</H2>";
print "Wait 5 sec...<br>";
sleep 5;
print "Done!<br></BODY></HTML>";
My script is on an IIS web-server. The problem is when I access this script with Internet Explorer (the first time, not refreshing the page) noting will be displayed until the whole script is executed. With Firefox I will first see the Menu and wait 5 sec… and after 5 sec “Done!”
How can I get the script to work so even in IE?
Or is there some way of “workaround”…?
The original script will “measure” a lot of values, and take a lot of time to execute, it would be nice to present every new value as son as possible.
Regards
/Peter
I have a small example script to describe my problem.
#!perl -w
$|=1;
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Test</TITLE>";
print "</HEAD><BODY><H2>Menu</H2>";
print "Wait 5 sec...<br>";
sleep 5;
print "Done!<br></BODY></HTML>";
My script is on an IIS web-server. The problem is when I access this script with Internet Explorer (the first time, not refreshing the page) noting will be displayed until the whole script is executed. With Firefox I will first see the Menu and wait 5 sec… and after 5 sec “Done!”
How can I get the script to work so even in IE?
Or is there some way of “workaround”…?
The original script will “measure” a lot of values, and take a lot of time to execute, it would be nice to present every new value as son as possible.
Regards
/Peter