O'Reilly logo

Learning jQuery - Fourth Edition by Karl Swedberg, Jonathan Chaffer

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

Chapter 10. Advanced Events

To build interactive web applications, we need to observe the user's activities and respond to them. We have seen that jQuery's event system can make this task easy, and in the chapters so far we have used this event system many times.

In Chapter 3, Handling Events, we touched upon a number of features that jQuery provides for reacting to events. In this more advanced chapter, we will cover:

  • Event delegation, and the challenges it presents
  • Performance pitfalls associated with certain events, and how to address them
  • Custom events that we define ourselves
  • The special event system that jQuery uses internally for sophisticated interactions

Revisiting events

For our sample document, we will create a simple photo gallery. The gallery ...

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