Chapter 11. JavaScript in Drupal

This chapter explains how to apply the JavaScript skills you acquired or polished while working through Chapters 9 and 10. You will learn how to add JavaScript to Drupal and to themes in particular, and you will get to know the various ways of providing additional information in the form of variables for the JavaScript that runs on a page. You will also see how JavaScript can interact with the server and discover how you can return results from a server query.

The majority of this chapter, however, explores ways to create self-contained and portable JavaScript “components”—pieces of functionality that can greatly enhance your Web site. You will learn how to create a horizontal scroller, step by step. Finally, ...

Get Front End Drupal: Designing, Theming, Scripting now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.