On Mon, 28 Aug 2006, Michael Peters wrote:
Putnam, Denis (Contractor) wrote:
Can anyone tell me how to send an http response back to the browser
before i complete my output buffer on a long running query. I need to
do this to keep the browser from timing out.
If you need to do this, then you need to do it manually. First set
the header_type to 'none', then print your own http headers, and
then periodically print a null byte to the client. >
Better than a null-byte, show a progress bar. It's pretty easy to
setup a little Javascript to render a progress bar and then
periodically send:
<script language="javacript">update_progress(10);</script>
You can see an example of this done with CGI::App in Krang's
Krang::CGI::Publisher module. You can get Krang from:
http://krang.sf.net
-sam
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]