I am trying to use jquery ui progress bar with valum file upload plugin. Code :
<div id="pb"></div>
.....
onProgress: function (id, fileName, uploadedBytes, totalBytes) {
$("#pb").progressbar({ value : uploadedBytes });
},
. .... .
But this is not working, can anybody pls guid me, how to use progress bar properly ?
Assuming you have an html with a
<div id="progressbar"></div>the following code will step through the progressbar once every 10 miliseconds untill it reaches 100:
Note: The other answers are also valid, I only posted this answer as an answer to “How to properly use a progressbar” part of the question which IMO has not been answered.