mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-24 08:04:43 +00:00
Added a note about linking to a hash and a link to the hashes page for reference
This commit is contained in:
parent
1ac40578c9
commit
49eb7f9de9
1 changed files with 6 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
<div data-role="content" class="ui-body">
|
||||
|
||||
<p>jQuery Mobile is designed to work with simple page linking conventions. Essentially, just link up your pages and assets as you normally would and jQuery Mobile will automatically handle page requests in a single-page model, using Ajax when possible. When Ajax isn't possible -- such as a non-same-domain url, or if specified using certain attributes on the link -- a normal http request is used instead.</p>
|
||||
<p>jQuery Mobile is designed to work with simple page linking conventions. Essentially, you can just link up your pages and assets as you normally would and jQuery Mobile will automatically handle page requests in a single-page model, using Ajax when possible. When Ajax isn't possible -- such as a non-same-domain url, or if specified using certain attributes on the link -- a normal http request is used instead.</p>
|
||||
|
||||
<p>The goal of this model is to allow developers to create websites using best practices where ordinary links will "just work" without any special configuration, while creating a rich, native-like experience that can't be achieved with standard HTTP requests.</p>
|
||||
|
||||
|
|
@ -55,11 +55,14 @@
|
|||
|
||||
<p>You can seamlessly navigate between local, internal "pages" and external pages in jQuery UI. Both will look the same to the end user except that external pages will display the AJAX spinner while loading. In either situation, jQuery Mobile updates the page's URL hash to enable Back button support, deep-linking and bookmarking. </p>
|
||||
|
||||
<p>Please note that since we are using the hash to track navigation history for all the Ajax 'pages', it's not currently possible to deep link to an anchor (index.html#foo) on a page in jQuery Mobile because the framework will look for a 'page' with and ID of #foo instead of the native behavior of scrolling to the content with that ID.</p>
|
||||
|
||||
<p>Learn more about the technical details of the <a href="docs-navmodel.html">Ajax, hashes and history</a> in jQuery mobile.</p>
|
||||
|
||||
<h2>Page transitions</h2>
|
||||
|
||||
<p>The jQuery Mobile framework includes a set of CSS-based transitions that can be applied to any object or page change event. By default, when navigating to a new page, the framework applies the right to left slide transition effect. When via the Back button, the slide transition direction is reversed.</p>
|
||||
<p>Learn more about the technical details of the <a href="/jquery/jquery-mobile/wiki/Page-Navigation-Model">Page-Navigation-Model</a>.</p>
|
||||
|
||||
|
||||
<p>To set a custom transition effect, add the <code>data-transition</code> attribute to the link. Possible values include: </p>
|
||||
|
||||
<pre><code>
|
||||
|
|
|
|||
Loading…
Reference in a new issue