All Forums >> [Scripting] >> Post a VBScript >> WebComponent: Progress Bar Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Probably 2-3 times a month we see questions about progress bars. In response, here's a progress bar to implement in your webpages/HTML Applications:
The biggest benefit here is not relying on the <object> tag and assuming that the ActiveX Component is installed.
Put this is a separate library (vbsProgress.vbs in this example)
A sample page:
And finally the API:
API: Progress.init() <--do this before using the progress bar so it loads the bar to the page <body onload="Progress.init()"> or similar. Progress.show() <--Show the progress bar Progress.hide() <--hide the progress bar Progress.progress(part,whole) <--update progress