nanobar icon indicating copy to clipboard operation
nanobar copied to clipboard

Long running process

Open dfloresgonz opened this issue 9 years ago • 1 comments

I have a javascript method which invokes a php function which takes around 4 seconds, well the bar starts loading just when the ajax call returns the value from the PHP function. I'd like the bar to start loading just when the user clicks the JS function call. How can this be achieved.

function jsfunction(){ 
     simplebar.go(10);
     /*ajax call PHP takes around 4 seconds*/
    simplebar.go(100);
}

dfloresgonz avatar May 10 '16 18:05 dfloresgonz

well I managed to do it. My ajax call sync = true I set it to false and got it working!

dfloresgonz avatar May 10 '16 19:05 dfloresgonz