On 8/28/06 1:49 PM, "Sam Tregar" <[EMAIL PROTECTED]> wrote:
> 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
And Cees has put together:
http://search.cpan.org/~ceeshek/Apache2-UploadProgress-0.2/
If you are an apache2 user.
Sean
---------------------------------------------------------------------
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]