Book Image

jQuery Mobile Web Development Essentials

By : Raymond Camden, Andy Matthews
Book Image

jQuery Mobile Web Development Essentials

By: Raymond Camden, Andy Matthews

Overview of this book

<p>jQuery Mobile is a unified, HTML5-based user interface system for all popular mobile device platforms. It is compatible with all major mobile, tablet, e-reader and desktop platforms like iOS, Android, Blackberry, Palm WebOS, Nokia/Symbian, and Windows Phone 7.<br /><br /><i>jQuery Mobile Web Development Essentials</i> will explain how to create mobile-optimized sites with the easiest, most practical HTML/JavaScript framework available and to add the framework to your HTML pages to create rich, mobile-optimized web pages with minimal effort.<br /><br />Throughout the book, you'll learn details that help you become a pro at mobile web development. You begin with simple HTML and quickly enhance it using jQuery Mobile for incredible mobile-optimized sites. Start by learning the building blocks of jQuery Mobile&rsquo;s component-driven design. Dig into forms, events, and styling, then finish by building native mobile applications. You will learn how to build websites and apps for touch devices such as iPhone, iPad, Android, and BlackBerry with the recently developed jQuery Mobile library through sample applications of increasing complexity.</p>
Table of Contents (19 chapters)
jQuery Mobile Web Development Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface

Working with physical events


For the first part of this chapter, we will focus on the "physical" events, or events related to touch and other actions done with a device.

Note

For those of you who have been testing jQuery Mobile using a regular browser, please note that some of the following examples will not work properly on a desktop browser. If you wish, you can download and install emulators for various mobile phone types. For example, Android has an SDK that supports creating virtual mobile devices. Apple also has a way to simulate an iOS device. Setting up and installing these emulators are beyond the scope of this chapter, but it is certainly an option. Of course, you can also use a real hardware device as well.

The physical events include the following:

  • tap and taphold: tap represents what it sounds like — a quick physical touch on the web page. taphold is a longer touch. Many applications will make use of two separate actions — one for tap and one for taphold.

  • swipe, swipeleft...