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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.