Mastering jQuery Mobile
eBook - ePub

Mastering jQuery Mobile

  1. 262 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering jQuery Mobile

About this book

You've started down the path of jQuery Mobile, now begin mastering some of jQuery Mobile's higher level topics. Go beyond jQuery Mobile's documentation and master one of the hottest mobile technologies out there. Previous JavaScript and PHP experience can help you get the most out of this book.

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2015
Edition
1
eBook ISBN
9781783559084

Mastering jQuery Mobile


Table of Contents

Mastering jQuery Mobile
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started
Overview
Installing XAMPP for Windows
Installing XAMPP for Mac OS X
Installing Aptana Studio
Downloading jQuery Mobile
Using the framework via the CDN
Google's CDN
Microsoft's CDN
jQuery's CDN
Seeing the framework in action
Summary
2. Tools and Testing
Overview
Theming with jQuery ThemeRoller
The basics
Rolling into your own theme
Inspector
Preview
Color
Tools
Creating a theme
Using Aptana Studio 3
The interface
Toolbar
Project Explorer
Console, terminal, and problems
The Editor window
Suggested customizations
Creating a new project
Testing with Screenfly
The interface
More information
Summary
3. Mobile Design
Overview
Responsive web design techniques
Flexible layouts
Images
Media queries
Media queries in action
Feature detection with Modernizr
Getting started
Testing for geolocation
Testing for web storage
Device detection with WURFL
Getting started with the ScientiaMobile cloud
Device detection example – tablet brand
RESS introduction
Getting started with RESS
Summary
4. Call to Action – Our Main Project
Overview
Pages
Panels
Popups
Toolbars
Creating a Home button
Navbars
Summary
5. Navigation
Overview
Links and page navigation
Ajax page linking
Non-Ajax page linking
Multipage document linking
Working with transitions and effects
Navigating with swipe gestures
Working with page loaders
Summary
6. Controls and Widgets
Overview
Widgets
Input with touch
Working with plugins
Accessibility
Summary
7. Working with Data
Overview
Setting up our database
A dab of PHP
Fetching data
Displaying information
Some more PHP
Forms and validation
Inserting data into the database
Summary
8. Finishing Touches
Overview
Creating custom icons
Introduction to Cordova
Configuring Cordova
Step 1 – install XCode
Step 2 – the iOS SDK
Step 3 – install Command Line Tools
Step 4 – install Android SDK
Step 5 – install Apache Cordova
Notifications
Geolocation
Offline storage
Local storage
WebSQL database
Summary
9. The Next Level
Overview
Working with Node.js
Getting started
Creating a starting JavaScript file
Creating our jade views
Creating our routes
Working with RequireJS and Backbone.js
Building a WordPress mobile theme
Getting ready
Creating the style sheet
Creating the header file
Creating the footer file
Creating the function file
Creating the index file
Seeing the theme in action
Summary
10. Mobile Best Practices and Efficiency
Best practices for design and layout
Icon size
Designing with Photoshop
Fluid design
Avoiding fixed footers or headers
Avoiding tables
Dialogs and popups
Forms
Best practices for images
Don't use images at all
Optimizing images
Image sprites
The same image set for retina and non-retina devices
Lazy loading
Best practices for CSS
Customizing the jQuery Mobile download
Removing unused CSS
Combining multiple CSS files
Minify and gzip
jQuery optimizations
Selector caching
Script files at the end or in the head?
Combining the JavaScript files
Using the latest jQuery version
jQuery Mobile custom build
Don't always use jQuery
Minify and gzip
jQuery Mobile optimizations
A multipage template
Prefetching pages
Server-side processing for single-page templates
Pre-enhanced markup
Using data defaults
Number of widgets on a page
Limiting the size of widgets
Performance tools for optimization
The Google Chrome developer tools
Firefox tools and the Firebug plugin
Remote debugging on Android
Remote debugging on iOS
The Google PageSpeed tools
Summary
Index

Mastering jQuery Mobile

Copyright © 2015 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 authors, 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: July 2015
Production reference: 1270715
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-908-4
www.packtpub.com

Credits

Authors
Chip Lambert
Shreerang Patwardhan
Reviewers
Saeed Afzal
Altaf Hussain
Anirudh Prabhu
Commissioning Editor
Owen Roberts
Acquisition Editor
Tushar Gupta
Content Development Editor
Adrian Raposo
Technical Editors
Novina Kewalramani
Shiny Poojary
Mohita Vyas
Copy Editors
Puja Lalwani
Kausambhi Majumdar
Sameen Siddiqui
Ameesha Smith-Green
Project Coordinator
Kinjal Bari
Proofreader
Safis Editing
Indexer
Tejal Soni
Graphics
Sheetal Aute
Disha Haria
Jason Monteiro
Production Coordinator
Manu Joseph
Cover Work
Manu Joseph

About the Authors

Chip Lambert has been creating websites ever since his high school days, when he started with fantasy sport websites. In addition to these 20 years of HTML experience, he has 15 years of experience with PHP and MySQL development. He previously wrote Instant RESS Implementation How-to by Packt Publishing. He is currently a technical analyst for Jenzabar, Inc. You can follow him on Twitter at @chiplambert or visit his personal blog cum website at http://www.programmerchip.com.
Shreerang Patwardhan completed his bachelor's degree in computer engineering, and since then, he has been working on various technologies for the last 4.5 years. He started off by working for a small start-up in Pune, India, on an innovative solar-powered Linux-based handheld device. He has also worked extensively on Google Maps API v3 and worked in the GIS domain for more than a year. He is also one of the technical reviewers for Google Maps JavaScript API Cookbook, published by Packt Publishing.
Shreerang is currently employed at a MNC in the San Francisco Bay Area, USA, as a technical consultant and is working on the frontend development of various web applications using different cutting-edge frontend tec...

Table of contents

  1. Mastering jQuery Mobile

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Mastering jQuery Mobile by Chip Lambert, Shreerang Patwardhan in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.