jQuery.mobile.path.makePathAbsolute()

Utility method for converting a relative file or directory path into an absolute path. Given a path that is relative to another absolute path, this utility will convert the relative path to an absolute path based on the given absolute path. jQuery.mobile.path.makePathAbsolute( relPath, absPath ) relPath

navigate event

A wrapper event for both hashchange and popstate The navigate event is a wrapper around both the hashchange and popstate events. In addition to providing a single event for all browsers it also provides a data object in both cases allowing for the unification of handlers. This feature is used by the $.mobile.navigate method to include directionality and URL information.

Types

Types JavaScript provides several built-in datatypes. In addition to those, this page documents virtual types like Selectors, enhanced pseudo-types like Events and some concepts you need to know about Functions. If you want to study these concepts in depth, take a look at MDN. You should be able to try out most of the examples below by just copying them to your browser's JavaScript Console (Chrome, Safari with Develop menu activated, IE 8+) or Firebug console (Firefox). Whenever an example

.slideDown()

Display the matched elements with a sliding motion. The .slideDown() method animates the height of the matched elements. This causes lower parts of the page to slide down, making way for the revealed items. Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. If any other string is supplied, or if th

.error()

Bind an event handler to the "error" JavaScript event. This method is a shortcut for .on( "error", handler ). As of jQuery 1.8, the .error() method is deprecated. Use .on( "error", handler ) to attach event handlers to the error event instead. The error event is sent to elements, such as images, that are referenced by a document and loaded by the browser. It is called if the element was not loaded correctly. For example, consider a page with a simple

jQuery.mobile.getInheritedTheme()

Retrieves the theme of the nearest parent that has a theme assigned. This method is no longer useful, since theme inheritance is implemented entirely in CSS as of jQuery Mobile 1.4.0. jQuery.mobile.getInheritedTheme( el, defaultTheme ) el jQuery A jQuery collection objec

deferred.resolve()

Resolve a Deferred object and call any doneCallbacks with the given args. Normally, only the creator of a Deferred should call this method; you can prevent other code from changing the Deferred's state by returning a restricted Promise object through deferred.promise(). When the Deferred is resolved, any doneCallbacks added by deferred.then() or deferred.done() are called. Callbacks are executed in the order they were added. Each callback is passed th

deferred.rejectWith()

Reject a Deferred object and call any failCallbacks with the given context and args. Normally, only the creator of a Deferred should call this method; you can prevent other code from changing the Deferred's state by returning a restricted Promise object through deferred.promise(). When the Deferred is rejected, any failCallbacks added by deferred.then or deferred.fail are called. Callbacks are executed in the order they were added. Each callback is pa

jQuery.mobile.activePage

Reference to the page currently in view. Note: jQuery.mobile.activePage is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use the getActivePage() method from the pagecontainer widget instead.

.ajaxStop()

Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. Whenever an Ajax request completes, jQuery checks whether there are any other outstanding Ajax requests. If none remain, jQuery triggers the ajaxStop event. Any and all handlers that have been registered with the .ajaxStop() method are executed at this time. The ajaxStop event is also triggered if the last outstanding Ajax request is cancelled by returning fa