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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.