Head First Ajax Code: Chapter 4, Multiple Event Handlers

Chapter 4 Opening Image

A single event handler isn't always enough.

Head First Ajax

Sometimes you've got more than one event handler that needs to be called by an event. Maybe you've got some event-specific actions, as well as some generic code, and stuffing everything into a single event handler function won't cut it. Or maybe you're just trying to build clean, reusable code, and you've got two bits of functionality triggered by the same event. Fortunately, we can use some DOM Level 2 methods to assign multiple handler functions to a single event.

Download Code

Yoga for Programmers Files (In Progress from Chapter 3) (zip)

Yoga for Programmers (Completed Page) (zip)

View the Finished Site

Yoga for Programmers (opens a new window)