You could unbuffer output by setting "$|=1;" at the top of your script, and then print something to STDOUT right before your query executes. The browser will then wait for the rest of the page to be printed while your query is executing.

I have a script that crunches images with Image Magick that reports on progress to the user picture-by-picture. This method works EXCELLENT in IE, not too sure about netscape.

Make sure the "unbuffered", incremental output isn't contained in table- Tables won't render until the whole thing downloads.

You're probably going to have to play with this, I think it works differently in different browsers.

--Psuedo Code -- #!/usr/bin/perl -wT use strict; use CGI; my $q=CGI->new(); $|=1; print $q->header(); # print all your other HTML stuff for the header type thingy, only com +plete tables my $query=$dbh->prepare($your_query) or die("Couldn't prepare: ".$dbh- +>errstr()); print "Still Processing"; $query->execute() or die("Couldn't execute: ".$dbh->errstr()); print $query_results_and_bottom_of_page;

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

In reply to Re: CGI::Push Only Works With Netscape. Now What? by Hero Zzyzzx
in thread CGI::Push Only Works With Netscape. Now What? by sierrathedog04

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.