Skip to content

Instantly share code, notes, and snippets.

@hzmangel
Created September 28, 2013 02:21
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 hzmangel/6737739 to your computer and use it in GitHub Desktop.
Save hzmangel/6737739 to your computer and use it in GitHub Desktop.
Load another multi-page page in jQuery

The default loading only loads first page from the second multi-page page, so make sure to add :rel => :external to the link/button, or add ajaxFormsEnabled : false like this:

$(document).bind("mobileinit", function(){
  $.extend($.mobile , {
  ajaxFormsEnabled : false
  });
});

For the form with submit button, uses data-ajax=false.

Those two approaches are not tested:

  • Add ? to the end of URL
  • Add target=_self to the link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment