On Tue, 6 Jul 2004, Peter Masiar wrote:
> I was thinking about creating "partial_output" runmode, which will
> display at least header before long journey to select thousands of
> records, to give users visual clue they did clicked on submit button and
> program is working to fetch the data.
The easy way to do this is to tell CGI::App to not print a header and
then just print the increment results yourself. I've used this to
produce a progress bar from within a CGI::App runmode. Something
like:
sub slow_mode {
my $self = shift;
my $query = $self->query;
# setup for increment output
$self->header_type('none');
# print our own header and output
print $query->header(-expires => '-1d');
print "SOME OUTPUT\n";
# return nothing at the end
return "";
}
-sam
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]