I am using \"page widget\" to implement a dialog in jquery mobile with data-dialog=\"true\"
, everything is fine, i can also back to the previous page with the b
Dialog widget is deprecated as of 1.4, hence, .dialog("close")
is no longer a valid function.
To go back to previous page:
jQuery Mobile
$.mobile.back();
JavaScript
window.history(-1)
This should work:
$(':mobile-pagecontainer').pagecontainer('change', <pageid>, { reverse: false });
Reverse-option being true/false determines whet ever you are going backwards or forwards. True means back I think.