Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Yet another progress bar.

by Nomis52 (Friar)
on May 29, 2002 at 06:24 UTC ( [id://169993]=note: print w/replies, xml ) Need Help??


in reply to Yet another progress bar.

I've seen this done quite a bit using servlets and ASP, but never using Perl :(

As far as I can tell here's the basic idea:

Put a onSubmit javascript handler so that when the form is submitted, a new window is opened calling say progress.cgi

The original page then goes ahead and submits the form, somehow you have to capture the total size of the file before it is uploaded and store it somewhere (perhaps in a database) so progess.cgi could access it.

The progress window is then set to refresh every say 2 seconds, when it does it checks the temporary file size and grabs the total size out the database. Then you can make up an image or whatever your after.

There is a demo (regrettably not in Perl but VBScript) here

I have been meaning to look into something like this for a while but havn't had the time, so please keep us informed of your progress (no pun intended)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://169993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-18 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found