mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-27 01:24:41 +00:00
Tweaked into for data-url info, thanks @kinblas
This commit is contained in:
parent
877b323c7f
commit
a9eaf1bb44
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@
|
|||
|
||||
<h2>Data-url storage</h2>
|
||||
|
||||
<p>The nav model system has a data-url parameter that is used to track the location of the page. Pages embedded within the main application document all have their data-url parameter set to the ID of the @data-role="page" element. The only exception to this is the first-page in the document. The first-page is special because it can be addressed by its @id if it has one, or by the document or base URL (with no hash fragment).</p>
|
||||
<p>The nav model maintains a data-url attribute on all data-role=”page” elements. This data-url attribute is used to track the origin of the page element. Pages embedded within the main application document all have their data-url parameter set to the ID of the @data-role="page" element. The only exception to this is the first-page in the document. The first-page is special because it can be addressed by its @id if it has one, or by the document or base URL (with no hash fragment).</p>
|
||||
|
||||
<p>Pages that are external to the application document get pulled in dynamically via ajax, their data-url is set to the site relative path to the external page. If you are running in an environment where loading an external page from a different domain is allowed, then the data-url is set to the absolute URL.</p>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue