O'Reilly logo

Front End Drupal: Designing, Theming, Scripting by Konstantin Käfer, Emma Jane Hogbin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, you’ll ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required