Hour 12. Handling Events

What You’ll Learn In This Hour:

• How to use page initialization events

• How to use touch events

• How to use virtual mouse events

• How to trigger an event when device orientation changes

An event is basically a trigger that happens either by user interaction or by a process that is being run. As a developer, you can tie into an event to enable custom scripts to run, or to change the default behavior of an action or process. During this hour, we look at some of the different ways that you can use an event to extend your site when using jQuery Mobile.

Events for Page Initialization

When pages are initialized they go through three stages:

• Before page creation

• Page creation

• Page initialization

These stages all ...

Get Sams Teach Yourself jQuery Mobile in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.