14

Events and Event Handling

Stuff Happens...Just Handle It

—Unknown

Yes, stuff happens, both in life and in web applications. Users click page elements, enter data, move the mouse around, and perform myriad other activities. In a more formal way, we refer to the stuff that happens as “events.” And our response to events can’t be passive. Our pages must do things to handle the events. Events and event handling and how Dojo can help are the topics of this chapter.

14.1. Description of the Event Model

In this chapter we examine events and event handling in Dojo. But as we delve into the Dojo specifics, it is also important to review the techniques for identifying and responding to events in the standard browser programming model and JavaScript. ...

Get Dojo: Using the Dojo JavaScript Library to Build Ajax Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.