O'Reilly logo

Sams Teach Yourself jQuery Mobile in 24 Hours by Phil Dutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required