Last active
August 29, 2015 13:56
-
-
Save saumya/9015917 to your computer and use it in GitHub Desktop.
jQueryMobile change page API has been changed and seems like there is a problem with the actual page change. Here is snippet which make it work.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The options object must have set, changeHash:true, as in the first example | |
//1 | |
$.mobile.pageContainer.pagecontainer("change", "pageID", { reload:true, transition:'flow', changeHash:true }); | |
//alternates | |
//2 | |
$(":mobile-pagecontainer").pagecontainer("change", "target", { options }); | |
//3 | |
$("body").pagecontainer("change", "target", { options }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment