jquery-steps
jquery-steps copied to clipboard
Async onStepChanging
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 :
- User click "Next"
- onStepChanging call WebDB queqy and return false because we don't know result at this time
- WebDB query returns result and call $(wizard).steps("next") again
- 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.
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.
@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