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

Async onStepChanging #107

Open
alexey-baranov opened this issue Oct 1, 2014 · 2 comments
Open

Async onStepChanging #107

alexey-baranov opened this issue Oct 1, 2014 · 2 comments

Comments

@alexey-baranov
Copy link

We use jquery-steps for online kiosks UI. Every time user click "Next" kiosk checks data from WebDB wich is async. So the workflow looks like :

  1. User click "Next"
  2. onStepChanging call WebDB queqy and return false because we don't know result at this time
  3. WebDB query returns result and call $(wizard).steps("next") again
  4. onStepChanging return true

If WebDB query get 5 seconds then user look current step in wrong state during this 5 seconds. It's very confusing.

We ask you rewrite onStepChanging for async workflows.

The other usefull scanario is calling ajax request to the server from onStepChanging wich is async too.

@oscarzambrano116
Copy link

oscarzambrano116 commented Apr 1, 2020

hey Community @rstaib I am facing the same issue, do you have any update with this. Thank you so much. I don't know if you could resolve you issue @alexey-baranov it would be great if you can give me your argument about this.

@iwasherefirst2
Copy link

@alexey-baranov could you explain how you did step3? "WebDB query returns result and call $(wizard).steps("next") again".

I wonder how you did this. Maybe you could check #323

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

3 participants