Learn HTML5 and JavaScript for iOS

Book description

You have a great idea for a simple mobile web app. Or, you have a great idea for a complicated mobile web app. Either way, Learn HTML5 and JavaScript for iOS will help you build, fine-tune, and publish your app for iPhone, iPad, or iPod touch. Scott Preston will walk you through building a mobile web app from scratch using real-world examples. You'll learn about design considerations, mobile web frameworks, and HTML5 features like animation and graphics using Canvas. You'll also learn how to customize your app for a variety of platforms, and you'll explore testing and performance tips for your app.

  • Get an overview of HTML5, JavaScript, and mobile web frameworks

  • Discover tips for iOS usability as well as performance

  • Dig into features like images, animation, and even geolocation

Table of contents

  1. Title
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Author
  6. About the Technical Reviewer
  7. Preface
    1. The Companion Site
    2. The Real World Example Site
    3. Downloading the code
    4. Contacting the Author
  8. CHAPTER 1: Getting Started
    1. Your Browser (Mobile Safari)
    2. Planning Your Project
    3. Application Components
    4. Organizing Your Files
    5. Browser Redirection
    6. <meta>
    7. Screen Size and Viewport
    8. The Sample App
    9. Summary
  9. CHAPTER 2: HTML5 in Short
    1. What Is HTML5?
    2. HTML5 Support
    3. HTML5 Overview
    4. Putting It All Together
    5. Chapter Summary
  10. CHAPTER 3: CSS3 and iOS Styling
    1. What is CSS3?
    2. CSS Basics
    3. Media Queries and Media Selectors
    4. Saving to the Home Screen
    5. A Short Overview of CSS3
    6. Styling for iOS
    7. Putting It All Together
    8. Chapter Summary
  11. CHAPTER 4: JavaScript and APIs
    1. About JavaScript
    2. Using JavaScript
    3. Creating an API
    4. JavaScript Frameworks
    5. Putting It All Together
    6. Chapter Summary
  12. CHAPTER 5: Mobile Frameworks
    1. Overview of jQuery Mobile
    2. Working with Pages
    3. Toolbars and Buttons
    4. Putting It All Together
    5. Summary
  13. CHAPTER 6: Usability, Navigation, and Touch
    1. Usability
    2. Site Navigation
    3. Navigating for the iPad
    4. Touch Interactions
    5. Putting It All Together
    6. Chapter Summary
  14. CHAPTER 7: GPS and Google Maps
    1. Getting GPS Coordinates
    2. Using Google Maps
    3. Putting It All Together
    4. Chapter Summary
  15. CHAPTER 8: Animation and Effects
    1. CSS Tricks
    2. CSS Transitions
    3. CSS Transforms
    4. Key Frame Animations
    5. Adding a Little JavaScript
    6. Effects with jQuery
    7. Putting It All Together
    8. Chapter Summary
  16. CHAPTER 9: Canvas
    1. Canvas Basics
    2. Drawing Examples
    3. Interaction Example
    4. Image Manipulation Example
    5. Animation Example
    6. Putting It All Together
    7. Chapter Summary
  17. CHAPTER 10: Audio and Video
    1. Overview of the Audio and Video Tags
    2. Audio and Video Examples
    3. Putting It All Together
    4. Chapter Summary
  18. CHAPTER 11: Integrating with Native Services
    1. Orientation
    2. Acceleration
    3. Custom Links
    4. Putting It All Together
    5. Chapter Summary
  19. CHAPTER 12: Offline Apps and Storage
    1. The Cache Manifest
    2. Cookies
    3. Local Storage
    4. Session Storage
    5. Putting It All Together
    6. Chapter Summary
  20. CHAPTER 13: Mobile Testing
    1. Test-Driving Code
    2. Performance Testing
    3. Automated Testing
    4. A/B Testing
    5. Putting It All Together
    6. Chapter Summary
  21. CHAPTER 14: Advanced Topics
    1. Cross-Domain Communication
    2. Server-Sent Events
    3. Web Sockets
    4. Web Workers
    5. History Management
    6. Chapter Summary
  22. CHAPTER 15: Going Native with PhoneGap
    1. Installing PhoneGap
    2. Enhancing Your App
    3. PhoneGap API Overview
    4. Plugins
    5. Mobile Web App Versus Native App
    6. Putting It All Together
    7. Publishing to the App Store
    8. Chapter Summary
  23. APPENDIX: Companion Site References
    1. Overview of Companion Site
    2. Chapter 1 – Getting Started
    3. Chapter 2 – HTML5 In Short
    4. Chapter 3 – CSS3 and iOS Styling
    5. Chapter 4 – JavaScript and APIs
    6. Chapter 5 – Mobile Frameworks
    7. Chapter 6 – Usability, Navigation, and Touch
    8. Chapter 7 – GPS and Google Maps
    9. Chapter 8 – Animation and Effects
    10. Chapter 9 – Canvas
    11. Chapter 10 – Audio and Video
    12. Chapter 11 – Native Services
    13. Chapter 12 – Offline Apps and Storage
    14. Chapter 13 – Mobile Testing
    15. Chapter 14 – Advanced Topics
    16. Chapter 15 – Going Native
  24. Index

Product information

  • Title: Learn HTML5 and JavaScript for iOS
  • Author(s):
  • Release date: May 2012
  • Publisher(s): Apress
  • ISBN: 9781430240389