PacktLib: Drupal 6 JavaScript and jQuery

Drupal 6 JavaScript and jQuery

Credits

About the author

About the reviewers

Preface

Drupal and JavaScript

Do you speak...?

Drupal's architecture

Users, nodes, and blocks

Drupal JavaScript development tools

Summary

Working with JavaScript in Drupal

How Drupal handles JavaScript

Project overview: printer-friendly page content

The printer script

Creating a theme

Summary

jQuery: Do More with Drupal

jQuery: the write less, do more library

Using jQuery in Drupal

Project: rotating sticky node teasers

A brief look backward

Summary

Drupal Behaviors

The drupal.js library

Drupal JavaScript behaviors

Project: collapsing blocks

Utilities

Project: a simple text editor

Summary

Lost in Translations

Translations and drupal.js

Translation and languages

Using the translation functions

Adding a translated string

Project: weekend countdown

Summary

JavaScript Theming

Theming in PHP, theming in JavaScript

The Drupal.theme() function

Project: menus and blocks

The JavaScript theming module

Project: templates for JavaScript

Summary

AJAX and Drupal Web Services

AJAX, JSON, XHR, AHAH, and Web 2.0

Project: web clips with RSS and AJAX

Project: real-time comment notifications

Summary

Building a Module

How modules work

Project: creating a JavaScript loader module

Project: the editor revisited

Summary

Integrating and Extending

Project: autocompletion and search

Project: jQuery UI

Project: writing a jQuery plug-in

Summary