As Randal Schwartz always says...
'...
=1= #!/usr/bin/perl -Tw
=2= use strict;
=3= $|++;
Lines 1 through 3 start nearly every program I write, turning on taint mode
(good for CGI programs), warnings (good for catching stupid mistakes),
compiler restrictions (good for catching more stupid mistakes) and disabling
buffering on STDOUT (good for CGI programs).
...'
(I hope that it may help).
ALBERTO ADRI�N SCHIANO
[EMAIL PROTECTED]
/\<><><><><><><><><><><><><><><><><><><><>/\
\/ Going down the road \/
/\ and feeling bad... /\
\/<><><><><><><><><><><><><><><><><><><><>\/
| -----Mensaje original-----
| De: Peter Masiar [mailto:[EMAIL PROTECTED]
| Enviado el: Martes, 06 de Julio de 2004 12:09
| Para: CGI App
| Asunto: [cgiapp] display partial results from a slow program
|
| Hi listers,
|
| I have a runmode "print_all" which displays data from two tables: 1
| record from the header, and couple thousands related detail records.
|
| Before using C::A, browser displayed partial results as read from
| database,formatted and sent to output.
|
| Now in C::A nothing is sent until all data is read and processed.
| Browser's mouse shows it's working, but users are spoiled to see at
| least something before getting all.
|
| 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.
|
| But I want to avoid one more click on "view details" link.
|
| Is it possible to create a redirection CGI header in "partial_output"
| runmode, which will print something and redirect to "print_all" runmode?
|
| I was looking into CGI.pm:
| $query->redirect('http://somewhere.else/in/movie/land');
| but I am not sure how it will mesh with C::A methods.
|
| Ideas? Suggestions? Code snippets? :-)
|
| TIA
|
| --
| Peter Masiar
|
| ---------------------------------------------------------------------
| 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]
---------------------------------------------------------------------
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]