Home Page Icon
Home Page
Table of Contents for
Dedication
Close
Dedication
by Jonathan Stark
Building iPhone Apps with HTML, CSS, and JavaScript
Dedication
A Note Regarding Supplemental Files
Preface
Who Should Read This Book
What You Need to Use This Book
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. Getting Started
Web Apps Versus Native Apps
What Is a Web App?
What Is a Native App?
Pros and Cons
Which Approach Is Right for You?
Web Programming Crash Course
Intro to HTML
Intro to CSS
Intro to JavaScript
2. Basic iPhone Styling
First Steps
Preparing a Separate iPhone Stylesheet
Controlling the Page Scaling
Adding the iPhone CSS
Adding the iPhone Look and Feel
Adding Basic Behavior with jQuery
What You’ve Learned
3. Advanced iPhone Styling
Adding a Touch of Ajax
Traffic Cop
Simple Bells and Whistles
Roll Your Own Back Button
Adding an Icon to the Home Screen
Full Screen Mode
Changing the Status Bar
Providing a Custom Startup Graphic
What You’ve Learned
4. Animation
With a Little Help from Our Friend
Sliding Home
Adding the Dates Panel
Adding the Date Panel
Adding the New Entry Panel
Adding the Settings Panel
Putting It All Together
Customizing jQTouch
What You’ve Learned
5. Client-Side Data Storage
localStorage and sessionStorage
Saving User Settings to localStorage
Saving the Selected Date to sessionStorage
Client-Side Database
Creating a Database
Inserting Rows
Error handling
Selecting Rows and Handling Result Sets
Deleting Rows
What You’ve Learned
6. Going Offline
The Basics of the Offline Application Cache
Online Whitelist and Fallback Options
Creating a Dynamic Manifest File
Debugging
The JavaScript Console
The Application Cache Database
What You’ve Learned
7. Going Native
Intro to PhoneGap
Using the Screen’s Full Height
Customizing the Title and Icon
Creating a Startup Screen
Installing Your App on the iPhone
Controlling the iPhone with JavaScript
Beep, Vibrate, and Alert
Geolocation
Accelerometer
What You’ve Learned
8. Submitting Your App to iTunes
Creating an iPhone Distribution Provisioning Profile
Installing the iPhone Distribution Provisioning Profile
Renaming the Project
Prepare the Application Binary
Submit Your App
While You Wait
Further Reading
Index
About the Author
Colophon
Copyright
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Building iPhone Apps with HTML, CSS, and JavaScript
Next
Next Chapter
A Note Regarding Supplemental Files
Dedication
To Erica—and that little jumping bean in her tummy.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset