jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

Async onStepChanging

Open alexey-baranov opened this issue 11 years ago • 2 comments

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.

alexey-baranov avatar Oct 01 '14 07:10 alexey-baranov

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.

oscarzambrano116 avatar Apr 01 '20 00:04 oscarzambrano116

@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

niels-numbers avatar Feb 16 '21 22:02 niels-numbers