100% found this document useful (2 votes)
595 views

Creating Mobile Apps with jQuery Mobile 1st Edition Shane Gliser - The complete ebook is available for download with one click

The document promotes various eBooks available for download at ebookname.com, including titles on mobile app development, community medicine, and chemistry. It highlights the ease of accessing digital formats like PDF, ePub, and MOBI. Additionally, it provides information about the author Shane Gliser and the content structure of the book 'Creating Mobile Apps with jQuery Mobile'.

Uploaded by

atbasmunni
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
595 views

Creating Mobile Apps with jQuery Mobile 1st Edition Shane Gliser - The complete ebook is available for download with one click

The document promotes various eBooks available for download at ebookname.com, including titles on mobile app development, community medicine, and chemistry. It highlights the ease of accessing digital formats like PDF, ePub, and MOBI. Additionally, it provides information about the author Shane Gliser and the content structure of the book 'Creating Mobile Apps with jQuery Mobile'.

Uploaded by

atbasmunni
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

Endless Ebook, One Click Away – Start Downloading at ebookname.

com

Creating Mobile Apps with jQuery Mobile 1st


Edition Shane Gliser

https://ebookname.com/product/creating-mobile-apps-with-
jquery-mobile-1st-edition-shane-gliser-2/

OR CLICK HERE

DOWLOAD EBOOK

Browse and Get More Ebook Downloads Instantly at https://ebookname.com


Click here to visit ebookname.com and download ebook now
Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...

Creating Mobile Apps with jQuery Mobile 1st Edition


Shane Gliser

https://ebookname.com/product/creating-mobile-apps-with-jquery-
mobile-1st-edition-shane-gliser/

Creating Mobile Apps with jQuery Mobile Second Edition


Andy Matthews

https://ebookname.com/product/creating-mobile-apps-with-jquery-
mobile-second-edition-andy-matthews/

Learning React Native Building Native Mobile Apps with


JavaScript 1 (Early Release) Edition Bonnie Eisenman

https://ebookname.com/product/learning-react-native-building-
native-mobile-apps-with-javascript-1-early-release-edition-
bonnie-eisenman/

Companion for 3rd Mbbs Community Medicine 13th Edition


Yatiraj Singi

https://ebookname.com/product/companion-for-3rd-mbbs-community-
medicine-13th-edition-yatiraj-singi/
Moscow and the Emergence of Communist Power in China
1925 30 The Nanchang Uprising and the Birth of the Red
Army 1st Edition Bruce Elleman

https://ebookname.com/product/moscow-and-the-emergence-of-
communist-power-in-china-1925-30-the-nanchang-uprising-and-the-
birth-of-the-red-army-1st-edition-bruce-elleman/

Under One Roof Again All Grown Up and Re learning to


Live Together Happily 1st Edition Susan Newman

https://ebookname.com/product/under-one-roof-again-all-grown-up-
and-re-learning-to-live-together-happily-1st-edition-susan-
newman/

Cathedrals of Science The Personalities and Rivalries


That Made Modern Chemistry 1st Edition Patrick Coffey

https://ebookname.com/product/cathedrals-of-science-the-
personalities-and-rivalries-that-made-modern-chemistry-1st-
edition-patrick-coffey/

Traditional Chinese medicine Theory and principles 1st


Edition Dongpei Hu

https://ebookname.com/product/traditional-chinese-medicine-
theory-and-principles-1st-edition-dongpei-hu/

William Rex A Model of a 17th century Warship 2005th


Edition Ab Hoving

https://ebookname.com/product/william-rex-a-model-of-a-17th-
century-warship-2005th-edition-ab-hoving/
Control Systems Principles and Design Third Edition M.
Gopal

https://ebookname.com/product/control-systems-principles-and-
design-third-edition-m-gopal/
Creating Mobile Apps with
jQuery Mobile

Learn to make practical, unique, real-world sites that


span a variety of industries and technologies with the
world's most popular mobile development library

Shane Gliser

BIRMINGHAM - MUMBAI
Creating Mobile Apps with jQuery Mobile

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.

First published: April 2013

Production Reference: 1170413

Published by Packt Publishing Ltd.


Livery Place
35 Livery Street
Birmingham B3 2PB, UK

ISBN 978-1-78216-006-9

www.packtpub.com

Cover Image by Asher Wishkerman (wishkerman@hotmail.com)


Credits

Author Project Coordinators


Shane Gliser Anish Ramchandani
Navu Dhillon
Reviewers
Mario Agüero Proofreaders
Kaiser Ahmed Lauren Tobon
Andy Matthews Elinor Perry-Smith
Tony Pye
Indexer
Acquisition Editor Rekha Nair
Usha Iyer
Production Coordinator
Lead Technical Editor Pooja Chiplunkar
Arun Nadar
Cover Work
Technical Editors Pooja Chiplunkar
Jalasha D'costa
Soumya Kanti
Ishita Malhi
Varun Pius Rodrigues
About the Author

Shane Gliser graduated from Washburn University in 2001, specializing in Java


development. Over the next several years, he developed a love of web development
and taught himself HTML, CSS, and JavaScript. Having shifted his focus again,
Shane's primary passions are user experience and the mobile web.

Shane began working with jQuery Mobile while it was still in the Alpha 2 phase and
deployed American Century Investments' mobile site while the framework was still
in Beta 2. Since then, he has rebranded and re-launched his own personal business,
Roughly Brilliant Digital Studios (http://roughlybrilliant.com), as a place
where he could start blogging tips about using jQuery Mobile.

Major thanks go to Todd Parker, Scott Jehl, and the rest of the crew
at Filament Group and the many other volunteers who have given
their time and talent to creating jQuery Mobile.

Jim Tharp, thank you for being my mobile partner-in-crime and for
your continuous, epic sense of humor.

To the leadership team at American Century Investments, thank you


for believing in my little two-week demo and trusting us to march
down this unknown path.
About the Reviewers

Mario Agüero is a Software Engineer from Costa Rica with a long experience in
both software development and academics.

He has developed several backend engines for clients and directed the adoption of
best practices for growing business. From the last couple of years, he has also been
working in frontend development, developing great interfaces and components for
his clients' websites.

He has the advantage of being strongly agnostic about platforms, making him one
of the few persons recognized as an excellent instructor and architect in both .NET
and Java.

On the academic side, he has always been ahead in actively promoting technologies
such as XML, JavaScript, and JSON before they became mainstream. He has helped
with and developed several training programs for professional updates and
career changes.

He has also reviewed the Spanish editions of several books, such as PHP for
Dummies.

Kaiser Ahmed is a professional web developer. He has acquired his Bachelor of


Science degree from Khulna University of Engineering and Technology (KUET)
and his Master of Science degree in Computer Science Engineering from United
International University, Dhaka. He is a cofounder of CyberXpress.Net, Inc. (www.
cyberxpress.net), which is based in Bangladesh.

He has been working as Senior Software Developer at Krembo Interactive and D1SH.
COM CORP., Canada, for 2 years.
He has a wide array of technical skills, knowledge of the Web, and experience
across a spectrum of online-development activities in building and improving
online properties, which he has done for multiple clients. He enjoys creating
site architecture and infrastructure; backend development using open source
technologies such as PHP, MySQL, Apache, Linux, and others (for example, LAMP);
and frontend development using CSS and HTML/XHTML.

I want to thank my loving wife, Maria Akther, for her great support.

Andy Matthews has been working as a web and application developer for over 16
years, with experience in a wide range of industries and a skillset which includes UI/
UX, graphic design, and programming. He has co-authored the book jQuery Mobile
Web Development Essentials, and writes for online publications such as NetTuts and
.NET Magazine. He is a frequent speaker at conferences around the USA, and he has
developed software for the open source community including several of the most
popular jQuery Mobile projects on the web. He blogs at andyMatthews.net, he tweets
at @commadelimited. He lives in Nashville, Tennessee with his wife and four children.

Tony Pye has over 10 years of experience in producing web-based solutions, and
strives to stay ahead when it comes to rapidly-evolving web technologies in order to
be able to offer innovative solutions.

He is passionate about matching business goals with innovative use of technology.


As the head of Digital Production at INK Digital Agency, he has been guiding clients
through the complex digital world; integrating digital marketing with internal
business systems is his specialty.

Liaising with members from the creative and user-experience teams, meeting clients,
presenting ideas, and helping define goals are just a part of Tony's normal day at INK.
Some of the solutions he has helped produce have delivered exciting results for
companies including Ballymore, Morrisons, Renault, Tarmac, Aviva, LA fitness, and
the University of Leeds.

Tony has also worked on a number of other books as the technical reviewer, which
include Pro HTML5 Programming and The Definitive Guide to HTML5 WebSocket
(not yet published).

I'd like to thank my beautiful wife for her support and patience
during the long nights I've worked. Her fantastic coffee-making
skills were certainly put to great use. Thanks darling!!
www.PacktPub.com

Support files, eBooks, discount offers


and more
You might want to visit www.PacktPub.com for support files and downloads related to
your book.

Did you know that Packt offers eBook versions of every book published, with PDF and
ePub files available? You can upgrade to the eBook version at www.PacktPub.com and
as a print book customer, you are entitled to a discount on the eBook copy. Get in touch
with us at service@packtpub.com for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up
for a range of free newsletters and receive exclusive discounts and offers on Packt books
and eBooks.
TM

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital
book library. Here, you can access, read and search across Packt's entire library of books.

Why Subscribe?
• Fully searchable across every book published by Packt
• Copy and paste, print and bookmark content
• On demand and accessible via web browser

Free Access for Packt account holders


If you have an account with Packt at www.PacktPub.com, you can use this to access
PacktLib today and view nine entirely free books. Simply use your login credentials for
immediate access.
To my wonderful wife, Laney. Yes, now I will finally finish the basement.
Table of Contents
Preface 1
Chapter 1: Prototyping jQuery Mobile 9
The game has changed 9
The mobile usage pattern 10
HTML prototyping versus drawing 11
Getting our hands dirty with small business 12
The rest of the site 15
Requirements 18
Alternates to paper prototyping 19
Summary 19
Chapter 2: A Mom-and-Pop Mobile Website 21
A new jQuery Mobile boilerplate 21
Meta viewport differences 23
Full-site links beyond the industry standard 24
The global JavaScript 26
.live versus .on 27
The global CSS 28
Breaking the HTML into a server side template 28
What we need to create our site 31
Getting Glyphish and defining custom icons 32
Linking to phones, e-mails, and maps 34
Custom fonts 37
Page curl shadow effects for our list items 38
Optimization: why you should be thinking of it first 39
The final product 41
The custom CSS 42
The resulting first page 47
Table of Contents

Getting the user to our mobile site 48


Detecting and redirecting using JavaScript 49
Detecting on the server 51
Summary 51
Chapter 3: Analytics, long forms, and frontend validation 53
Google Static Maps 53
Adding Google Analytics 55
Long and multi-page forms 60
Integrating jQuery Validate 62
E-commerce tracking with Google Analytics 72
Summary 74
Chapter 4: QR Codes, Geolocation, Google Maps API,
and HTML5 Video 75
QR codes 76
Geolocation 77
Integrating the Google Maps API 87
Geek-out moment—GPS monitoring 92
Linking and embedding video 98
Summary 100
Chapter 5: Client-side Templating, JSON APIs, and HTML5
Web Storage 101
Client-side templating 102
Patching into JSON APIs (Twitter) 104
Programmatically changing pages 113
Generated pages and DOM weight management 113
Leveraging RSS feeds 114
Forcing responsive images 119
HTML5 Web Storage 119
Browser-based databases (a work in progress) 120
JSON to the rescue 120
Leveraging the Google Feeds API 122
Summary 124
Chapter 6: HTML5 Audio 125
HTML5 Audio 126
Fixed position persistent toolbars (really!?) 128
Controlling HTML5 Audio with JavaScript 130
HTML5 Audio in iOS is different 136
The all-in-one solution (multipage made useful) 136
Saving to the home screen with HTML5 manifest 150
Summary 152
[ ii ]
Another Random Scribd Document
with Unrelated Content
PLATE 261

Alcazar Gardens.
PLATE 262

Alcazar Gardens.
PLATE 263

Alcazar Gardens.
PLATE 264

House of Pilate. The Goddess Ceres.


PLATE 265

House of Pilate. The Goddess Pallas Pacifer.


PLATE 266

Italica.
PLATE 267

Roman Walls.
PLATE 268

Patio de Banderas and the Giralda.


PLATE 269

Plaza de San Francisco.


PLATE 270

St Mark’s Church.
PLATE 271

Plaza de San Fernando.


PLATE 272

The Town Hall. Details of the Old Part.


PLATE 273

Façade of the Palace of San Telmo.


PLATE 274

Statue of Velaquez.
PLATE 275

Plaza de la Constitución.
PLATE 276

Plaza de la Constitución.
PLATE 277

Calle de Sierpes.
PLATE 278

Calle de Sierpes.
PLATE 279

A Street in Seville.
PLATE 280

Hercules Avenue.
PLATE 281

The Pasadera.
PLATE 282

Courtyard of La Caridad.
PLATE 283

Plaza de San Fernando.


PLATE 284

Plaza de Gavidia.
PLATE 285

View from the Pasadera.


PLATE 286

The Drive.
PLATE 287

Paseo de las Delicias.


PLATE 288

The Quay.
PLATE 289

Partial View of Seville.


PLATE 290

Plaza de Toros.
PLATE 291

Fields of San Sebastian.


PLATE 292

Park of Maria Luisa.


Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookname.com

You might also like