Pathologically Eclectic Rubbish Lister | |
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?? |
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) hereI 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)
In Section
Seekers of Perl Wisdom
|
|