jquery-mobile/docs/pages
scottjehl b3a8230638 This commit includes simplifications to the hashchange event handling & changePage logic, which results in a few bug fixes and removal of some previous limitations. Details:
- jquery.mobile.core.js  no longer creates pages from every page and dialog in the DOM automatically at domready. Instead, pages are created as they are referenced via changePage, which can speed up pageload in multi-page documents, and means local "dialogs" referenced via data-rel="dialog" no longer need a data-role="dialog" attribute when served.

- in changePage, "from" is now allowed to be undefined. This simplifies the logic involved in showing the first page, which never had a "from" page, and previously needed a custom pageChange workaround to accommodate that.

- The pageshow event is no longer used as a callback for returning false and preventing the $.mobile.activePage from being set to the newly shown page. In other words, a page always becomes $.mobile.activePage once its shown now (the only reason this was optional before was because of a dialog restriction that's no longer true)

- the hashchange event logic for showing a particular page is now greatly simplified. It either shows the page referenced in location.hash, or if there's no hash it changes to the first page in the dom. This means every pageshow (including the first one) now uses pageChange internally.

- the hashchange event listener is no longer disabled when ajaxEnabled == false. Doing this before prevented local non-ajax page navigation from working properly. To disable hashchange listening, use $.mobile.urlHistory.listeningEnabled. We might consider defining (or moving) this on the $.mobile hash later as well for easier access.

- The internal var $.mobile.startPage is now $.mobile.firstPage, because it's not necessarily the page you started on, but merely a reference to the first "page" in the dom.

- Back buttons are auto-added to every page after the first one you first visit (this includes generated pages, such as those in a multipage document or nested listviews). Keep in mind that a "back" button does not take the place of a standard "home" link, and when building an app with jQuery Mobile, it's good to make use of both (particularly on deep-linked pages). Fixes #908
2011-01-31 17:05:57 -05:00
..
docs-links-urltest added support for URL updating via a preset data-url on the page div when it is sent from the server. 2011-01-24 19:35:45 -05:00
api-pages.html Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually. 2011-01-20 11:26:12 -08:00
dialog-alt.html added data-rel attrs to close buttons 2011-01-31 17:05:41 -05:00
dialog-buttons.html incomplete, but close to fixing the dialog-create-history entry piece. Also includes fix for nested-listview deep linking regression. 2011-01-26 14:27:10 -05:00
dialog-success.html incomplete, but close to fixing the dialog-create-history entry piece. Also includes fix for nested-listview deep linking regression. 2011-01-26 14:27:10 -05:00
dialog.html added data-rel attrs to close buttons 2011-01-31 17:05:41 -05:00
docs-dialogs.html This commit includes simplifications to the hashchange event handling & changePage logic, which results in a few bug fixes and removal of some previous limitations. Details: 2011-01-31 17:05:57 -05:00
docs-link-scenarios.html Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually. 2011-01-20 11:26:12 -08:00
docs-links.html Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually. 2011-01-20 11:26:12 -08:00
docs-navmodel.html edited some nav model info - needs filling out, but outdated info is removed now at least 2011-01-26 22:44:32 -05:00
docs-pages.html updated doc version # 2011-01-31 16:45:41 -05:00
docs-transitions.html deprecated data-back attribute on links in favor of data-direction="reverse". Updated docs and relevant demos. 2011-01-23 18:12:46 -05:00
index.html Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually. 2011-01-20 11:26:12 -08:00
link-formats.html Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually. 2011-01-20 11:26:12 -08:00
multipage-template.html added a dialog to the demo 2011-01-31 16:51:20 -05:00
page-template.html Updated jq script link to 1.4.4 on both pages. Also used CDN versions on the multi-page template. 2010-12-02 11:43:58 -05:00
pages-themes.html markup cleanup. Fixes #878 2011-01-25 22:24:05 -05:00
transition-success.html incomplete, but close to fixing the dialog-create-history entry piece. Also includes fix for nested-listview deep linking regression. 2011-01-26 14:27:10 -05:00