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 ...
Get jQuery Mobile: Develop and Design 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.