in reply to Re: Re: CGI progress indicator
in thread CGI progress indicator

The problem here is that it depends upon your browser's behaviour. If you have a browser that wants to load the entire source before it starts rendering (lynx was and probably still is a good example of this), then the user will see nothing until the process has entirely finished. This is not a good thing.

The other problem is that browsers will usually get bored and time-out if they don't see any connection on a socket for a long enough period of time, or if the connection remained open for too long. So your browser might get bored and drop the connection after 50% of the processing has been done, even if you have been sending "progress updates".

So while you can have a solution that might work 100% of the time under your favourite or most popular browsers, it's not going to work 100% of the time with all browsers. This is where client-pull comes in handy, just about everything supports (or should support) refresh tags, so you don't have to worry about the user's browser getting bored, not displaying the progress reports, or wandering off to do other things.

Cheers,
Paul

Replies are listed 'Best First'.
Re: Re: Re: Re: CGI progress indicator
by shotgunefx (Parson) on Oct 02, 2001 at 11:48 UTC
    I didn't know that Lynx won't display output before the page is loaded. I've never tried a slow web app using it.

    I've had good results with IE,Netscape and Opera just printing a progress indiciator.
    The only times I really have to do this are big data loads from our clients who are almost all MS based. Like I said, not always the best solution but I think it works well in the majority of situations and is fairly reliable, though sometimes I use other solutions.

    -Lee

    "To be civilized is to deny one's nature."