Skip to main content

Posts

Showing posts with the label jquery mobile basics

Jquery Mobile - Multi-page structure

    In this post today, we will have a look at the multi-page Jquery mobile architecture. We have discussed the single page architecture in detail in the previous post . In case you have missed it, I recommend you to have a look at it first, before you proceed to the Jquery Mobile Multi-page architecture.     Jquery multi-page architecture is nothing but a collection of DIVs stacked together in a single HTML page linked to each other using the div IDs. Let's take a look at the example below and then discuss it in detail.  The example shows a three "page" site built with 3 jQuery Mobile divs navigated by linking to an id placed on each page wrapper. Note that the id's on the page wrappers are only needed to support the internal page linking, and are optional if each page is a separate HTML document. Here is what three pages look inside the  body  element.     You must have observed that each of the page div has an attribute data-r...