Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Welcome to the Monastery
 
PerlMonks  

Re: Yet another progress bar.

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.