Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long running process #46

Open
dfloresgonz opened this issue May 10, 2016 · 1 comment
Open

Long running process #46

dfloresgonz opened this issue May 10, 2016 · 1 comment

Comments

@dfloresgonz
Copy link

dfloresgonz commented May 10, 2016

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant