Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flush buffer problem with IE?

Status
Not open for further replies.

peterpl

Technical User
Feb 11, 2006
1
SE
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
 
If this link is credible, then the answer's no:
For a completely different alternative, your page can load without doing any processing, then you can start the processing and gather output through an AJAX call, as that should give you more control. You may have to find some way to break up the output a little more, but the flexibility is there if you work at it. SAJAX is a nice, simple toolkit that could get you started.

- Andrew
Text::Highlight - A language-neutral syntax highlighting module in Perl
also on SourceForge including demo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top