[mod_python] Query about client server interaction

baz listmail at xs4all.nl
Fri Jan 17 22:23:36 EST 2003

You can achieve this by sending pieces of javacript whenever you want to 
update something (like a progress bar or whatever).

You also need to be able to flush the output buffer to apache, (my setup 
seems to do this implicitly ?) otherwise i would've tried req.flush().

Works on major browsers, just make sure you send <script> tags everytime 
for this is needed by NN4 (or later?).


Tim Parker (UK) wrote:
> Hi,
> This is both a bit of understanding mod_python and also how CGI scripts 
> in general work, basically I have a long running query which can take up 
> to a minute or so to process, I want to return a page to the User 
> immediately saying what it is doing, ideally I would like this page to 
> get updated during the processing of the other operation.  And then when 
> it has finished the process it loads the resulting page on the Client.
> I believe some of this is possible with server-push but this only works 
> in Netscape as far as I can tell.  Also I can load a temporary page and 
> have a refresh every few seconds which will check to see if the other 
> process has finished, but I was wondering if anyone knows of a clever 
> way to achieve this, ideally to have a dynamically updating page which 
> checks the status of the process and when it has finished loads the 
> final page.
> Thanks in advance for anyone who has any ideas on this.

More information about the Mod_python mailing list