Community Documentation

Drupal 7 JavaScript API

Last updated May 10, 2013. Created by jhodgdon on March 24, 2010.
Edited by kiamlaluno, sreynen, RichardLynch. Log in to edit this page.

This section will describe the JavaScript, AJAX, and AHAH APIs for Drupal 7.

A couple of simple principles guide Drupal's JavaScript approach:

  • All pages should be perfectly functional without scripts. JavaScript provides alternatives or supplements, not replacements, for standard elements.
  • No JavaScript is hard-coded into pages. Rather, actions are attached dynamically to page elements, and only if the needed JavaScript support is present.
nobody click here