Skip to content

Instantly share code, notes, and snippets.

@saumya
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saumya/9015917 to your computer and use it in GitHub Desktop.
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.
//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