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 ...

Get Pro jQuery Mobile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.