Click to See Complete Forum and Search --> : Javascript Progress Bar


linuxnut
08-10-2003, 09:16 PM
I am trying to add a progress bar to a file upload feature in a perl application. I have recently downloaded a javascript progress bar. It says it can be controlled by ahref="javascript:incrCount(5)" Increase bar by 5%

or

script setCount(50) //set bar to 50%script

The second one only works after I click the above ahref link. Can someone show me an example of how to pass the setCount function a value using perl so it will update the progress bar? My plans are to have a small pop up window with a progress bar appear when you upload a file. I am still new to javascript, and seem to know just enough to be dangerous.

Thanks
Lee

Khalid Ali
08-11-2003, 08:06 AM
perl executes on server side where as JS is client side only.
Youwill need to re think your logic of doing this.Its rather impossible to reload your page a tonne of time to show the progress bar work.