Async

This Event

An Introduction to JavaScript Events

@ The Skiff 6 Gloucester Street, Brighton, BN1 4EW Map of The Skiff

Sorry, all in person events are cancelled until further notice due to COVID-19 (Coronavirus).

Green Light by Stephan Geyer, on Flickr

Events, also known as the publish/subscribe pattern, are a common idiom used throughout JavaScript. They are used to notify other objects about changes that may be acted upon (such as the browser events "click", "load" and "submit") and work very well with the asynchronous nature of JavaScript. They are a useful coding pattern to help keep JavaScript objects modular, reusable and easily extensible.

In this session, Aron Carroll will take us through examples of event usage in the wild, such as the DOM's .addEventListener() and jQuery's .ajax() methods. We will then look at building a simple example using jQuery to handle the events, and finish up with an overview of other libraries that could be used in our own code.

Following Event

View all events

Previous Event

View all events