O'Reilly logo

Pro jQuery Mobile by Brad Broulik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Methods

jQuery Mobile exposes a suite of methods that are helpful when you need to programmatically update your Mobile Web application.

  • $.mobile.changePage()

    The changePage function handles all the details of transitioning from one page to another.

    Usage

    $.mobile.changePage( toPage, [options] )

    Arguments

    • toPage (sting or jQuery collection). The page to transition to.
    • toPage (string). A file URL ("contact.html") or internal element's ID (“#contact”).
    • toPage (object). A jQuery collection object containing a page element as its first argument: $(“#contactPage”)

    options (object). A set of key/value pairs that configure the changePage request. All settings are optional.

    • allowSamePageTransition (boolean, default: false). The changePage method ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required