The Wayback Machine - https://web.archive.org/web/20171018062234/https://www.packtpub.com/web-development/drupal-6-javascript-and-jquery

Drupal 6 JavaScript and jQuery

Putting jQuery, AJAX, and JavaScript effects into your Drupal 6 modules and themes
Preview in Mapt

Drupal 6 JavaScript and jQuery

Matt Butcher

Putting jQuery, AJAX, and JavaScript effects into your Drupal 6 modules and themes
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$39.99
$29.99p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Drupal 6 JavaScript and jQuery Book Cover
Drupal 6 JavaScript and jQuery
$ 23.99
$ 16.80
Building Web Apps with jQuery, JavaScript and Bootstrap [Video] Book Cover
Building Web Apps with jQuery, JavaScript and Bootstrap [Video]
$ 124.99
$ 106.25
Buy 2 for $34.30
Save $114.68
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781847196163
Paperback340 pages

Book Description

JavaScript: It's not just for calculators and image rollovers.

Drupal 6 is loaded with new features, and not all of them are necessarily implemented in PHP. This unique book, for web designers and developers, will take you through what can be done with JavaScript (and especially with jQuery) in Drupal 6.

With the combination of the powerhouse jQuery library with its own robust set of JavaScript tools, Drupal 6 comes with a pre-packaged killer JavaScript environment. Cross-platform by nature, it provides all of the tools necessary to create powerful AJAX-enabled scripts, gorgeous visual effects, and view-enhancing behaviors. In addition, Drupal developers have ported some of its most powerful PHP tools – like a theming engine and support for localization and language translation – to JavaScript, making it possible to write simple scripts where once only complex PHP code could be used.

This book gives you the keys to the toolbox, showing you how to use Drupal's JavaScript libraries to make your modules and themes more dynamic, interactive and responsive, and add effects to make your Drupal site explode into life!

If you've dipped your toe in the water of theme or module development with Drupal 6, this is the book you want to make the look and behavior of your work something special. With it's project-based approach, this book is carefully constructed to guide you from how JavaScript fits into the overall Drupal architecture through to making you a master of the jQuery library in the world of Drupal themes and modules.

Table of Contents

Chapter 1: Drupal and JavaScript
Do you speak...?
Drupal's architecture
Users, nodes, and blocks
Drupal JavaScript development tools
Summary
Chapter 2: Working with JavaScript in Drupal
How Drupal handles JavaScript
Project overview: printer-friendly page content
The printer script
Creating a theme
Summary
Chapter 3: 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
Chapter 4: Drupal Behaviors
The drupal.js library
Drupal JavaScript behaviors
Project: collapsing blocks
Utilities
Project: a simple text editor
Summary
Chapter 5: Lost in Translations
Translations and drupal.js
Translation and languages
Using the translation functions
Adding a translated string
Project: weekend countdown
Summary
Chapter 6: 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
Chapter 7: 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
Chapter 8: Building a Module
How modules work
Project: creating a JavaScript loader module
Project: the editor revisited
Summary
Chapter 9: Integrating and Extending
Project: autocompletion and search
Project: jQuery UI
Project: writing a jQuery plug-in
Summary

What You Will Learn

  • An introduction to JavaScript in Drupal 6
  • The basics of the jQuery library
  • Creating JavaScript-enabled themes
  • Manipulating a page on the fly with jQuery
  • Authoring simple PHPTemplate files designed to maximize scripting potential
  • Using jQuery to add effects in Drupal 6
  • Working with Drupal 6 behaviors
  • Adding AJAX to modules
  • Using Drupal's localization and language translation engine in your JavaScript
  • Theming on the client-side with Drupal's JavaScript theme engine
  • Building better forms
  • Working with Drupal 6's JavaScript library
  • Writing portable JavaScript tools as Drupal modules

Authors

Table of Contents

Chapter 1: Drupal and JavaScript
Do you speak...?
Drupal's architecture
Users, nodes, and blocks
Drupal JavaScript development tools
Summary
Chapter 2: Working with JavaScript in Drupal
How Drupal handles JavaScript
Project overview: printer-friendly page content
The printer script
Creating a theme
Summary
Chapter 3: 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
Chapter 4: Drupal Behaviors
The drupal.js library
Drupal JavaScript behaviors
Project: collapsing blocks
Utilities
Project: a simple text editor
Summary
Chapter 5: Lost in Translations
Translations and drupal.js
Translation and languages
Using the translation functions
Adding a translated string
Project: weekend countdown
Summary
Chapter 6: 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
Chapter 7: 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
Chapter 8: Building a Module
How modules work
Project: creating a JavaScript loader module
Project: the editor revisited
Summary
Chapter 9: Integrating and Extending
Project: autocompletion and search
Project: jQuery UI
Project: writing a jQuery plug-in
Summary

Book Details

ISBN 139781847196163
Paperback340 pages
Read More

Read More Reviews

Recommended for You

Mastering Joomla! 1.5 Extension and Framework Development Second Edition Book Cover
Mastering Joomla! 1.5 Extension and Framework Development Second Edition
$ 29.99
$ 21.00
Learning Joomla! 3 Extension Development-Third Edition Book Cover
Learning Joomla! 3 Extension Development-Third Edition
$ 32.99
$ 23.10
Joomla! 1.5 Template Design Book Cover
Joomla! 1.5 Template Design
$ 26.99
$ 18.90
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Drools JBoss Rules 5.0 Developer's Guide Book Cover
Drools JBoss Rules 5.0 Developer's Guide
$ 29.99
$ 21.00
Joomla! 1.5 JavaScript jQuery Book Cover
Joomla! 1.5 JavaScript jQuery
$ 23.99
$ 16.80