Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Yet another progress bar...addendum

by Macphisto (Hermit)
on May 29, 2002 at 05:38 UTC ( [id://169985]=note: print w/replies, xml ) Need Help??


in reply to Yet another progress bar.

The following approach just came to me while I was settling into bed, and since my memory is terrible, I thought it best to write it up quickly:

If I could somehow, not process the information immediately after the submission button was pressed, I could then at least produce a graphic, or just throw out a count of bytes recieved. Something akin to - the user submits the information by striking the submit key and before I start pulling down that information, I create a popup window ( or just use the mainwindow for all I care ) and display total kB of data I've recieved by using the -s test on a predetermined temporary file. This would of course start at 0 since the file would be there, but it would have no data initially. The transfer of the file would begin and a meta-tag Refresh would allow the page to refresh every three seconds, thus recalling the progress_handler and again -s testing the temp file. The problem is how to delay that download so I can make the initial call to progress_handler and output output something - anykind of html or display first?



Everyone has their demons...you just happen to be mine.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-29 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found