Skip to Main Content
PhoneGap Build
book

PhoneGap Build

by Bintu Harwani
November 2013
Intermediate to advanced content levelIntermediate to advanced
303 pages
8h 45m
English
Auerbach Publications
Content preview from PhoneGap Build
120 ◾  PhoneGap Build
Handling Page Navigation
Unlike traditional Web pages, where each Web page is maintained in a separate HTML file, in
mobile programming, multiple pages are defined into a single HTML file. e idea is that once
the file is loaded, all the contained pages can be navigated without network requests.
We can define multiple pages in an application by using the data-role attribute. By assign-
ing a page value to the data-role attribute for more than one, we can define multiple pages.
For example, the following code defines two pages, Home and Page 2, in an application:
<!—Home Page—>
<div data-role = "page" id = "home">
<div data-role = "header"> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning App Development with Parse and Phonegap

Beginning App Development with Parse and Phonegap

Wilkins Fernandez, Stephan Alber
Ajax For Dummies®

Ajax For Dummies®

PhD Steve Holzner

Publisher Resources

ISBN: 9781466589742