O'Reilly logo

jQuery Mobile: Develop and Design by Kris Hadlock

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

13. Hooking into Events

jQuery Mobile offers custom events you can use to extend the functionality of the framework, including touch, scroll, device orientation, page transition, and page initialization, among others. Hooking into jQuery Mobile events opens up an entire world of opportunity that can’t be achieved with the basic framework setup. Knowing the state of a webpage at any given time provides a level of control you can use to extend existing functionality. This chapter shows you how to hook into each of these events to create custom functionality in a mobile website.

Touch Events

There are many touch events you can hook into with jQuery Mobile. Keep in mind that these are available only to touch-enabled devices, so desktop users may ...

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