mario kulka wrote:

> Hi,
> After I click on "submit" and point to the cgi there is a period of time
> before the cgi finishes running and loads the next page. If the script is
> simple and takes short amount of time everything is great. But what if
> that's not the case? What if the script (while uploading a file for example)
> takes a long time? How can I tell the user that the cgi is running and show
> some type of a progress being made so they don't click twice, or think that
> something is wrong.
> I've seen some sites where they have dots progressing, till the next site
> loads. Do they simply first load a page with sama simple javasript to have
> the dots .... adding and then the result page from the script loads? I was
> thinking about putting a "redirect" but would the new HTML included in the
> same script load upon finishing the rest of the script. Does perl executes
> line by line or prepares the results somehow and outputs everything on the
> exit(); ?
>
> Thank you for any comments,
> Mariusz

Hi Mario,

That is not really your problem.  The rules and boundaries of the game say:

=>The script's responsiblity is to offer the server-side file upload interface to the 
user agent [browser]
=>It is then the user agent's responsibility to hand the client-side file-handling 
request to the local OS, which should manage the job from there.

You might look up the html specification for the file upload input, to see if it 
offers any return value to the calling document.  If so, you could use Javascript 
within your page to activate some local wait indicator until it receives the transfer 
complete signal.  On my system [Windows 2K] file transfers spawn an independent 
process with it's own application window.  This window includes a progress bar.  The 
transfer occurs completely independently of the calling application.

Unless the CGI application needs to use some result of the file transfer, there should 
be no reason it needs to concern itself further with it.

Joseph



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to