Book Image

HTML5 iPhone Web Application Development

By : Alvin Crespo
Book Image

HTML5 iPhone Web Application Development

By: Alvin Crespo

Overview of this book

<p>Create compelling web applications specifically tailored for distribution on iOS Safari. Work through real world examples with references, and in-depth discussions on the approach; including its benefits and drawbacks.<br /><br />"HTML5 iPhone Web Application Development" strives to teach all levels of developers, beginners and professionals, the process of creating web applications for iOS Safari. Utilizing current industry standards for frontend development, learn to take advantage of HTML5, CSS3 and JavaScript to create compelling software.<br /><br />Start with reviewing current industry standards for frontend development, and end with creating a native application using the same codebase.</p> <p>Your journey will begin with an overview of current industry standards for frontend technology, quickly moving to solve real world issues; from creating a resizable or responsive gallery, to creating a single page application that utilizes the popular Backbone.js framework.</p> <p>"HTML5 iPhone Web Application Development" aims to make you an expert in developing web applications for the iOS Safari platform.</p>
Table of Contents (17 chapters)
HTML5 iPhone Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Touch and Gesture events


Touch events are easy to handle on the iPhone; however, there are a couple of "gotchas" when you start diving into when events are fired and how they are interpreted in certain situations. Luckily for us, gestures are also easily implemented with the GestureEvent object. In this section we'll go over touch and gestures in general, getting a fundamental understanding of the technology behind these user experiences so that in the next section, we can successfully create a swipeable slideshow.

Touch events

Touch events include one or more inputs received by your mobile device. In this book we'll focus on up to two-finger events that we can handle in several ways. iOS does a great job at interpreting these inputs; however, elements can be either clickable or scrollable as described by Apple's Developer documentation (http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#pageTitle):

A clickable...