Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > progress indicator in a mod_python script

Reply
Thread Tools

progress indicator in a mod_python script

 
 
Rajarshi
Guest
Posts: n/a
 
      05-17-2007
Hi, I have a web application built using mod_python.Currently it
behaves like a standard CGI - gets data from a form, performs a query
on a backend database and presents a HTML page.

However the query can sometimes take a bit of time and I'd like to
show the user some form of indeterminate progress indicator (spinning
dashes etc). My searching seems to indicate that this is based on some
form of asynchronous calls (AJAX) and I'm not sure how I can achieve
this effect in my mod_python app.

Any pointers to achieve this would be very appreciated.

Thanks,

 
Reply With Quote
 
 
 
 
Larry Bates
Guest
Posts: n/a
 
      05-18-2007
Rajarshi wrote:
> Hi, I have a web application built using mod_python.Currently it
> behaves like a standard CGI - gets data from a form, performs a query
> on a backend database and presents a HTML page.
>
> However the query can sometimes take a bit of time and I'd like to
> show the user some form of indeterminate progress indicator (spinning
> dashes etc). My searching seems to indicate that this is based on some
> form of asynchronous calls (AJAX) and I'm not sure how I can achieve
> this effect in my mod_python app.
>
> Any pointers to achieve this would be very appreciated.
>
> Thanks,
>

If you want "real" progress than you must do it with some asynchronous
communications via XMLRPC or sockets. You can "simulate" progress by
doing a little client-side javascript and include a progressive GIF.
There are a bunch of them available here:

http://www.ajaxload.info/

-Larry
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Move progress indicator in atlas =?Utf-8?B?Q2hyaXM=?= ASP .Net 1 06-25-2006 12:08 AM
File Upload Progress Indicator Marko Vuksanovic ASP .Net 1 06-25-2006 12:03 AM
HttpHandler Progress Indicator Dale Ragan via .NET 247 ASP .Net 1 08-06-2004 08:45 PM
terminal progress indicator Koen Janssens C++ 10 11-29-2003 10:58 AM
Progress indicator in IE6... Tin-Char D'un Computer Support 3 09-19-2003 11:59 AM



Advertisments