O'Reilly logo

jQuery Mobile Web Development Essentials Second Edition by Andy Matthews, Raymond Camden

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

Handling page events

Now that we've discussed physical type events, it's time to turn our attention to page events. Remember that jQuery Mobile has its own concept of pages. In order to give developers even more control over how pages work within jQuery Mobile, numerous page events are supported. Not all will necessarily be useful in your day-to-day development. In general, page events can be split into the following categories:

  • load: These are events related to the loading of a page. They are pagebeforeload, pageload, and pageloadfailed. pagebeforeload is fired prior to a page being requested. Your code can either approve or deny this request based on whatever logic may make sense. If a page is loaded, pageload is fired. Conversely, pageloadfailed ...

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