I was trying with JQM 1.2 Alpha popup widget and came across an issue. I do have a workflow process which shows up a popup dialog with ok and cancel button ( i call it as confirmation dialog) . the call back event of ok button would again show up another popup with ok button like alert ( calling it as alert box) . the second alert box is not showing up when called from the confirmation box. But works well when called separately.
This time popup chaining is not supported,
Please take a look at http://jquerymobile.com/demos/1.2.0-alpha.1/docs/pages/popup/index.html, last paragraph.
Is it not possible to open a second popup by binding to the popupafterclose event of the first popup?
I tried with this example: http://jsbin.com/atahip/38/edit
It is also not possible to close and immediate open another popup programatically.
I've tested some ways how to fake-chain popups: http://jsfiddle.net/MauriceG/m3Fwt/show/light/
Chaining popups is not trivial. That's why we're leaving it out of 1.2. I have some code to chain popups, and if there's enough demand, we may add it after 1.2. Please feel free to file a feature request for chained popups. That should be a good place to measure demand for such a feature.
See #4968 for the solution.
Docs: Adds a note about popup chaining with a timeout (popup/index.html)
Also addressed to #4796 and #4968