LoadPageOptions Class

Load an external page, enhance its content, and insert it into the DOM. This method is called internally by the changePage() function when its first argument is a URL. This function does not affect the current active page so it can be used to load pages in the background. The function returns a deferred promise object that gets resolved after the page has been enhanced and inserted into the document.

Namespace: SharpKit.jQueryMobile

Base Types

System.Object

Constructors

Name Description
LoadPageOptions()

Properties

Name Description
data (object or string, default: undefined) The data to send with an Ajax page request.
dataString (object or string, default: undefined) The data to send with an Ajax page request.
loadMsgDelay (number (in ms), default: 50) Forced delay before the loading message is shown. This is meant to allow time for a page that has already been visited to be fetched from cache without a loading message.
pageContainer (jQuery collection, default: $.mobile.pageContainer) Specifies the element that should contain the page after it is loaded.
reloadPage (boolean, default: false) Forces a reload of a page, even if it is already in the DOM of the page container.
role (string, default: undefined) The data-role value to be used when displaying the page. By default this is undefined which means rely on the value of the @data-role attribute defined on the element.
type (string, default: "get") Specifies the method ("get" or "post") to use when making a page request.
© Copyright 2005-2011 SharpKit. All rights reserved.