in reply to CGI progress indicator

this seems to work for me (in mozilla 0.9.4/linux and IE5.5/win2k):

#!/usr/bin/perl -w use strict; use CGI qw/:standard /; $| = 1; print header(); print<<ENDHTML; <html><head><title>progress test</title></head> <body> ENDHTML foreach my $i (1..10) { print $i, "<br />\n"; sleep 3; } print "</body></html>"; exit 0;

if you don't include the starting html tags, IE refuses to show anything until it's all done loading. maybe that's your problem?

anders pearson

Replies are listed 'Best First'.
Re: Re: CGI progress indicator
by JungleBoy (Scribe) on Oct 02, 2001 at 01:23 UTC
    Doh!
    I see my problem. The page is enclosed in a table, and it won't draw the table until the table is complete. Guess I have to do a little bit of redesigning.

    Thanks for the help.
Re: Re: CGI progress indicator
by Anonymous Monk on Nov 12, 2002 at 20:44 UTC
    this works fine in mozilla, but has anyone got it working in ie6? i have the caching problem so everything is still displayed when execution is comlete. it's so anoying!