diff --git a/docs/api/globalconfig.html b/docs/api/globalconfig.html index 6dba4c7e..a9444d1b 100755 --- a/docs/api/globalconfig.html +++ b/docs/api/globalconfig.html @@ -98,15 +98,17 @@ $(document).bind("mobileinit", function(){
ajaxEnabled boolean, default: truehashListeningEnabled boolean, default: truepushStateEnabled boolean, default: truehistory.replaceState in supported browsers, to convert the hash-based Ajax URL into the full document path. Note that we recommend disabling this feature if Ajax is disabled or if extensive use of external links are used.defaultPageTransition string, default: 'slide'touchOverflowEnabled boolean, default: falseoverflow-scrolling: touch; property.overflow: and overflow-scrolling: touch; CSS properties.defaultDialogTransition string, default: 'pop'For those browsers that support history.pushState and history.replaceState an additional optional plugin is provided that will convert the hash change urls mentioned in the previous section into the hashless equivelant. It's important to note that it does indeed convert the hash urls by using history.replaceState as the history.pushState does not produce the desired result in some mobile browsers.
For those browsers that support history.replaceState, an optional plugin is provided that will convert the hash change urls mentioned in the previous section into the full document path which is cleaner and makes the Ajax tracking transparent in the URL structure. This is built as an enhancement on top of the hash-based URL system for Ajax links. For browsers that do not support history.replaceState, or if this feature is disabled, hash-based URLs will be used instead. Note that this feature converts hash-based urls by using history.replaceState (not history.pushState) because this works more reliably across our target platforms.
Since the plugin initializes when the DOM is fully loaded you can enable and disable it manually by setting $.mobile.pushStateEnabled anytime before document ready.
Since the plugin initializes when the DOM is fully loaded you can enable and disable it manually by setting $.mobile.pushStateEnabled global configuration option to false anytime before document ready.
Slightly different implementations of the replaceState API in various browsers can cause odd behavior in specific scenarios. For example, some browser implementations (including desktop browsers) implement the popstate event differently when linking externally and moving back to a page onto which state has already been pushed/replaced. When building a jQuery Mobile application where the ajax navigation is being explicitly disabled, either though the frequent use of rel="external" on links or by disabling Ajax navigation completely via the $.mobile.ajaxEnabled=false, we recommend disabling the pushState feature to fall back to the hash based navigation for more consistent behavior.