Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Mobile JavaScript Application Development
A Note Regarding Supplemental Files
Preface
Introduction
Fragmentation
Growth of the Mobile Web
New Paradigms
Who Should Read This Book
Book Structure
What You Need
Code of the Book
Acknowledgements
Conventions Used in This Book
Using Code Examples
SafariĀ® Books Online
How to Contact Us
1. HTML5 for Mobile Applications
A Bit of History
Declarations and Meta Tags
A Minimal HTML5 Document
Doctype
Charset
JavaScript and Stylesheets
New and Obsolete Elements
HTML5 Applications
Add Web Apps to Home Screen in iOS
Add Web Apps to Home Screen in Android
Metadata for HTML5 Applications
HTML5 Application Cache
Manifest Files in Apache
Manifest Files with PHP
Manifest Files in IIS
Manifest Files in .NET
Debugging Manifest Files
Testing for HTML5 Features
Geolocation
Device Orientation
Device Motion
Network Connectivity
Canvas
CSS3 Animations and Transitions
Transitions
Animations
Final Considerations
Client-Side Storage
SQL Storage
Rich Media Tags
Conclusion
2. JavaScript Productivity Tips
About JavaScript
Some Coding Tips
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
The self Trick
More Ways to Do the Same Thing
Another Common Way to Create Custom Types
Passing Options
Conclusion
3. jQuery Mobile
Supported Platforms
Compatibility
Compatibility with Older Mobile Platforms
Key Features
At a Glance
To Do List Application
The HTML File
Pages
Lists
Buttons
Customizing the Look and Feel
Navigation
Page Lifecycle
Forms
Plug-ins
Storage
Codiqa
ThemeRoller
Conclusion
4. Sencha Touch
Introduction and History
Characteristics
Supported Platforms
Key Features
GUI Controls
CSS Transitions and Animations
Touch Event Management
Application Data Support
JavaScript Idioms
Descriptive Dictionary Pattern
Object Orientation in Sencha Touch
Creating a To Do List App
Create the HTML
Starting the Application Code
Transitions
Creating Instances
Stores, Proxies, Writers, and Readers
The Data Model
Creating the List
Creating a To Do Item Form
A Controller to Rule Them All
Reacting to Events
Navigation
Using Sencha Architect 2
Conclusion
5. PhoneGap
Introduction
Supported Platforms
Supported Features
Basic Usage
Installing PhoneGap
Creating an iOS Application
Creating an Android Application
With Eclipse
With IntelliJ IDEA
Creating a Windows Phone Application
Accessing Native Functionality
Plug-ins
The JavaScript Bridge
PhoneGap Kitchen Sink
The deviceready Event
Multitasking Events
Network Connectivity Events
Battery Events
Accelerometer
Address Book
Audio Recording and Playback
Camera
Connection Status
Filesystem
Location and Compass
Notifications
Storage
Conclusion
6. Debugging and Testing
Your Browser Web Inspector
Inspect the HTML of your app
Log Messages in the Console
Set Breakpoints in Your JavaScript Code
iWebInspector
Adobe Shadow
Testing
Jasmine
Siesta
Conclusion
7. Conclusion
Bibliography
Books
Generic References about Mobile Web Technologies
Websites about HTML5
Websites about CSS3
Websites about JavaScript
Other Frameworks
About the Author
Copyright
← Prev
Back
Next →
← Prev
Back
Next →