Demystifying Drupal AJAX Callback Commands

A presentation at NERDSummit in in Amherst, MA, USA by Michael Miles

When Drupal 7 was released in 2011, it came with an improved implementation of AJAX functionality. Good-bye “AHAH” and hello “AJAX Framework”. But four years later, some of the improvements that came along with the Drupal AJAX Framework go widely unused or unknown.

Introducing AJAX commands. The set of functions you should already be using, which allow AJAX callbacks to do much more then return rendered HTML.

This session will highlight and outline the Drupal AJAX command functions offered by the AJAX framework in both Drupal 7 and Drupal 8. In this session we will cover the following:

The Drupal AJAX command functions.

What functionality AJAX command functions provide. When and how to use the AJAX command functions. How to create custom AJAX commands.

Video