Feb 19, 2013, 12:03 PM
[CLOSED] How to retrigger ProgressBar on complete?
Hello.
I am refreshing something every 60 seconds through a webrequest.
I want to show a progressbar that indicates the next refresh.
If the refresh has completed, the progressbar should reset and start again. Unfortunately it does only run one time.
My second questions is, that as far as I understood my interval,duration and increment setting should seperate the progressbar into 60 pieces and fill one every second. But the progressbar runs much faster, does it need a specific width in order to use an increment of 60?
Regards
I am refreshing something every 60 seconds through a webrequest.
I want to show a progressbar that indicates the next refresh.
If the refresh has completed, the progressbar should reset and start again. Unfortunately it does only run one time.
var runProgressTasks = function (progress) {
progress.wait({
interval: 100,
duration: 6000,
increment: 60,
text: "Please Wait",
fn: function () {
doSomething();
runProgressTasks(App.ProgressTasks); <--- retrigger here !!!
}
});
}
I guess it does not work because the progressbar is still running at that moment, what can I do?My second questions is, that as far as I understood my interval,duration and increment setting should seperate the progressbar into 60 pieces and fill one every second. But the progressbar runs much faster, does it need a specific width in order to use an increment of 60?
Regards
Last edited by geoffrey.mcgill; Feb 26, 2013 at 7:21 AM.
Reason: [CLOSED]