progress indicator in a mod_python script

Discussion in 'Python' started by Rajarshi, May 17, 2007.

  1. Rajarshi

    Rajarshi Guest

    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,
    Rajarshi, May 17, 2007
    #1
    1. Advertising

  2. Rajarshi

    Larry Bates Guest

    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
    Larry Bates, May 18, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dale Ragan via .NET 247

    HttpHandler Progress Indicator

    Dale Ragan via .NET 247, Aug 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    589
    Rick Strahl [MVP]
    Aug 6, 2004
  2. Koen Janssens

    terminal progress indicator

    Koen Janssens, Nov 25, 2003, in forum: C++
    Replies:
    10
    Views:
    755
    Peter Koch Larsen
    Nov 29, 2003
  3. =?Utf-8?B?Q2hyaXM=?=

    Move progress indicator in atlas

    =?Utf-8?B?Q2hyaXM=?=, Jun 10, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    586
  4. Marko Vuksanovic

    File Upload Progress Indicator

    Marko Vuksanovic, Jun 22, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    559
  5. Marko Vuksanovic

    File Upload Progress Indicator ?

    Marko Vuksanovic, Jun 23, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    10,951
Loading...

Share This Page