Sams Teach Yourself jQuery Mobile in 24 Hours
Phil Dutson
Sams Teach Yourself jQuery Mobile in 24 Hours
Copyright 2013 by Sams Publishing
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contained herein.
ISBN-13: 978-0-672-33594-5
ISBN-10: 0-672-33594-8
Editor-in-Chief
Mark Taub
Executive Editor
Laura Lewin
Development Editor
Songlin Qiu
Managing Editor
Kristy Hart
Senior Project Editor
Lori Lyons
Copy Editor
Geneil Breeze
Indexer
Tim Wright
Proofreader
Kathy Ruiz
Technical Editors
Jim Hathaway
Greg Lavallee
Publishing Coordinator
Olivia Basegio
Multimedia Developer
Dan Scherf
Interior Designer
Gary Adair
Cover Designer
Anne Jones
Compositor
Nonie Ratcliff
Library of Congress Cataloging-in-Publication Data:
Dutson, Phil, 1981
Sams teach yourself jQuery mobile in 24 hours / Phil Dutson.
p. cm.
ISBN 978-0-672-33594-5 (pbk. : alk. paper)
1. JavaScript (Computer program language)--Programmed instruction. 2. Web site development
-Programmed instruction. I. Title.
QA76.73.J38D88 2013
005.2762--dc23
2012015341
Printed in the United States of America
First Printing July 2012
Trademarks
All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an as is basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book.
Bulk Sales
Sams Publishing offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales. For more information, please contact
U.S. Corporate and Government Sales
1-800-382-3419
For sales outside of the U.S., please contact
International Sales
Praise for Sams Teach Yourself jQuery Mobile in 24 Hours
Phil does a great job taking you through the mobile ecosystem and how jQuery Mobile makes it dead simple to break into it. Going from the fundamentals of web and mobile to advanced topics like video and themes, anyone looking to gain greater knowledge in mobile development will profit from this book.
Brett Child, Software Consultant, Software Technology Group
Sams Teach Yourself jQuery Mobile in 24 Hours by Phil Dutson is full of rock-solid real-world examples that can be easily built upon to create a functional, rich, custom, completely usable mobile website.
The book reads incredibly easy; you find that the learning comes almost effortlessly as you read and work through the tutorials. In addition to learning the elements you need to build your own website, youll also learn how to extend and fill your mobile website with elements such as video and the creation and scanning of QR and Microsoft Tag codes. It even covers the introduction of jQuery Mobile into WordPress and the development of Android-based applications using jQuery Mobile and PhoneGap. I highly recommend a read if youre doing any type of mobile web development.
Drew Harvey, Solution Architect, CrossView, Inc.
This book is an excellent resource for any developer looking to integrate jQuery mobile into their next project. Phil covers the fundamentals of jQuery mobile while also providing best practices for mobile development.
Jim Hathaway, Web Developer
This book is an excellent read for beginners and web veterans alike. Phil Dutson does an excellent job of highlighting the jQuery Mobile frameworks semantics and syntax while also providing an introduction to mobile web development best practices in general.
Greg Lavallee, Software Engineer, The Washington Post Company
Well-written, detail-oriented, and documented with plenty of hands-on examples makes Sams Teach Yourself jQuery Mobile in 24 Hours flow and easily comprehensible. This book is a must-have library addition for the software developer beginning down the mobile application development path.
Tamara Urry, Sr. Software Engineer & Owner, JET Technical
In my years of learning, training, and teaching programming, I have rarely come across an individual with Phil Dutsons ability to explain code. Whether you are a beginner, novice, or experienced programmer, Sams Teach Yourself jQuery Mobile in 24 Hours is written for you. Developers who want to take advantage of the vast mobile market will want to add this book to their arsenal.
Dale Wallentine, Associate Dean, School of Technology Stevens-Henager College, Logan Utah Campus
Table of Contents
About the Author
Phil Dutson is the lead front-end developer for ICON Health and Fitness. He has worked on projects and solutions for NordicTrack, ProForm, Freemotion, Sears, Costco, Sams Club, and others. He was an original team member of the iFit team that integrated Google Maps into personalized workout n and playback. Phil co-founded and currently manages The E-Com DevBlog, a development blog focused on web development and solutions. To learn more visit http://dev.tonic1394.com.
Dedication
To my patient and exceptionally loving family. Thank you for the support and encouragement.
Acknowledgments
A huge thanks to all of the wonderful people at Sams for working with me on this project. In no particular order Id like to single out my project editors, Trina MacDonald and Laura Lewin, for making sure I hit or at least came close to my deadlines; Olivia Basegio for helping me get things turned in; my awesome development editor, Songlin Qiu, who not only made sure that I always spelled lets as lets but also made sure that everything flowed nicely together; and my outstandingly brilliant technical editors, Jim Hathaway and Greg Lavallee, who not only tested every bit of code I threw at them, but pointed out when more explanation was necessary for the reader to really understand the concepts presented. I would also like to thank the production team, who put this book into your hands: Lori Lyons, Geneil Breeze, Nonie Ratcliff, and Kathy Ruiz.
As a personal thanks, Id like to tell Dave Davidicus Brown thank you for being indirectly and yet directly responsible for this endeavor. Another special thanks goes to my designer friends in UltraCube for always telling anyone who would listen (including me) to believe in your dreams, as well as my current eCommerce crew (Tracy, Casey, Sid, Remo, Brett, Eric, Chris, and Kim) and my previous crew (Berticus, Drewbie, Matt, Branden, and Stretch) for the support, praise, slight criticism, and sanity checks.