
Mobile JavaScript Application Development
Bringing Web Programming to Mobile Devices
Publisher: O'Reilly Media
Release Date: June 2012
Pages: 168
Read on Safari with a 10-day trial
Start your free trial now Buy on AmazonWhere’s the cart? Now you can get everything on Safari. To purchase books, visit Amazon or your favorite retailer. Questions? See our FAQ or contact customer service:
1-800-889-8969 / 707-827-7019
support@oreilly.com
When developing apps for the latest smartphones, you’re faced with several vexing questions. How many platforms do you need to accommodate? What level of support do mobile browsers provide? To help you address these and many other key issues, this guide provides a hands-on tour of the most powerful JavaScript frameworks available today.
You’ll build sample apps with jQuery Mobile, Sencha Touch, and PhoneGap to learn the unique advantages—and disadvantages—of each framework. From there, you can determine which one is best for your project. This book is ideal for web developers familiar with JavaScript, HTML, and CSS.
- Experience the simplicity of jQuery Mobile for building cross-browser applications
- Learn how Sencha Touch’s architecture, widgets, and blazing-fast rendering engine makes it a good choice for enterprise software
- Use PhoneGap to package your web app into a native iOS, Android, or Windows Phone application
- Discover the impact of various HTML5 features on mobile app development
- Pick up JavaScript productivity tips as you delve into its object orientation, closures, and coding conventions
- Test and debug your app with a collection of tips, tricks, and tools
Table of Contents
-
Chapter 1 HTML5 for Mobile Applications
-
A Bit of History
-
Declarations and Meta Tags
-
HTML5 Applications
-
HTML5 Application Cache
-
Testing for HTML5 Features
-
Geolocation
-
Device Orientation
-
Device Motion
-
Network Connectivity
-
Canvas
-
CSS3 Animations and Transitions
-
Client-Side Storage
-
Rich Media Tags
-
Conclusion
-
-
Chapter 2 JavaScript Productivity Tips
-
About JavaScript
-
Object Literals
-
Single or Double Quotes?
-
JavaScript Base Types
-
Dynamic Overloading of Base Types
-
Functions
-
How to Organize Code in namespaces
-
Create Objects and Arrays the Easy Way
-
Create a Singleton Object
-
Scheduling Function Execution
-
Concatenating Strings
-
Iterating Over Arrays
-
Using toString() for Reflection
-
Easy Code Injection
-
Object-Oriented Programming in JavaScript
-
Conclusion
-
-
Chapter 3 jQuery Mobile
-
Supported Platforms
-
Key Features
-
At a Glance
-
To Do List Application
-
Codiqa
-
ThemeRoller
-
Conclusion
-
-
Chapter 4 Sencha Touch
-
Introduction and History
-
Characteristics
-
Supported Platforms
-
Key Features
-
JavaScript Idioms
-
Creating a To Do List App
-
Using Sencha Architect 2
-
Conclusion
-
-
Chapter 5 PhoneGap
-
Introduction
-
Installing PhoneGap
-
Creating an iOS Application
-
Creating an Android Application
-
Creating a Windows Phone Application
-
Accessing Native Functionality
-
Plug-ins
-
The JavaScript Bridge
-
Conclusion
-
-
Chapter 6 Debugging and Testing
-
Your Browser Web Inspector
-
iWebInspector
-
Adobe Shadow
-
Testing
-
Conclusion
-
-
Chapter 7 Conclusion
-
Bibliography