jQuery UI Widgets › Forums › Editors › ProgressBar › progressbar ajaxStart and ajaxStop
Tagged: ajax, ajaxStart, ajaxStop, create, initialize, jqxprogressbar, progressbar, run, update
This topic contains 4 replies, has 2 voices, and was last updated by Hugo 10 years, 2 months ago.
Hello guys,
is it possible create a progressbar with ajaxStart and ajaxStop event? anyone have any examples?
Hello Hugo,
You can initialize the progressbar on ajaxStart and destroy (or hide) it on ajaxStop, e.g.:
$(document).ajaxStart(function() { $("#jqxProgressBar").jqxProgressBar({ width: 250, height: 25, value: 0 }); }); $(document).ajaxStop(function() { $('#jqxProgressBar').jqxProgressBar('destroy'); });
Best Regards, Dimitar
jQWidgets team http://www.jqwidgets.com/
Hi @dimitar,
and thus the bar is running?
Hi Hugo,
No, you would have to manually update the progress bar’s value. A suggestion is to do so in the success callback functions of your Ajax calls.
Hi @dimitar, Okay 🙁
You must be logged in to reply to this topic.