This site is archived.

AJAX and Javascript in Drupal7 (for developers)

3:00 PM - 4:00 PM
307 Commerce Guys

Presented by

Randy Fay (rfay)
Randy Fay, LLC
Rob Loach (Rob Loach)
Katherine Bailey (katbailey)
Work At Play
Under the HoodUnder the Hood
Technical details: Study servers, Drupal core, module building, and more.

Lots of work has gone into AJAX (formerly AHAH) and Javascript in Drupal 7.

AJAX is WAY easier to use now, and there are lots of new Javascript/JQuery features, including JQuery UI in core. Our goal is that you'll walk out of this session no longer afraid of AJAX in Drupal.

What is AJAX? AJAX was called AHAH just yesterday (D6), and in the Drupal context it most often means the ability for Drupal forms to dynamically refresh without a page load. So it means cooler forms that don't have to press the submit button all the time - they can dynamically respond to user input.

Who is this for? Any developer or themer who knows some PHP and a little Javascript. We'll aim to make the AJAX portion accessible to anybody who has ever seen the Drupal forms API, and the javascript portion should be accessible to anyone who has used or wants to use Javascript in Drupal.

In this talk we'll cover:

  • How to use AJAX Forms. It's easy now.
    • Example: Dependent dropdowns
  • Javascript usage and features
    • Module scaffolding and best practices
    • Theme scaffolding and best practices
    • Some nifty Javascript use cases
  • The Examples module's AJAX and Javascript examples
  • Drupal 7 Javascript coding changes from D6

Subtopics that will be addressed:

  • jQuery UI
  • AJAX Links
  • Javascript States system

Here's a link to our slides

Some related sessions you may be interested in:

Experience: Advanced
Industry: education, entertainment, library, marketing, media, non-profit
Tags: AHAH, ajax, javascript, jquery

I am very excited to see all of the javascript awesomeness that is now part of Drupal 7. I can't wait to see all the goodies that this will inspire.

Assuming my D6 AHAH talk is voted in, it would be cool to have these talks back to back. I'd like to go to this one to see what has changed!


This presentation is going to be awesome, cannot wait!

I'm a believer. Look forward to hearing your take on this. I just implemented #ajax to totally overhaul the addition of products / line items to order in Drupal Commerce and think it's wicked cool. Muuuuuch easier than #ahah. : )