Drupal 6 JavaScript and jQuery and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Very Good See details
$28.98 & this item ships for FREE with Super Saver Shipping. Details

or
Sign in to turn on 1-Click ordering.
 
   
Kindle Edition
 
   
More Buying Choices
Have one to sell? Sell yours here
Drupal 6 JavaScript and jQuery
 
 
Start reading Drupal 6 JavaScript and jQuery on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Drupal 6 JavaScript and jQuery [Paperback]

Matt Butcher (Author)
3.8 out of 5 stars  See all reviews (5 customer reviews)

List Price: $39.99
Price: $34.10 & this item ships for FREE with Super Saver Shipping. Details
You Save: $5.89 (15%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Wednesday, February 1? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $14.39  
Paperback $34.10  

Book Description

1847196160 978-1847196163 March 9, 2009
This book fills the gap between Drupal 6 modules and theming by showing you how to make use of JavaScript and jQuery to join up server-side modules with your front-end designs. This book is for web designers and developers who want to add JavaScript elements to Drupal themes or modules to create more flexible and responsive user interfaces. You are expected to know about the basic operation of Drupal, and be familiar with the concept of theming and modules in Drupal. No experience of creating themes or modules is required. You will need to know the basics of client-side web development; this means HTML, CSS, but also have a rudimentary grasp of the syntax of JavaScript. Familiarity with PHP programming will be an advantage, since we will be writing PHPTemplate files and (at the end) creating Drupal modules. However, the PHP is covered thoroughly enough that even the PHP neophyte will not find the text too demanding. The book also covers the jQuery JavaScript library and its use in Drupal, but no knowledge of jQuery is expected - you will learn everything you need in this book.

Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Drupal 6 JavaScript and jQuery + Learning Drupal 6 Module Development: A practical tutorial for creating your first Drupal 6 modules with PHP + Pro Drupal Development, Second Edition
Price For All Three: $101.94

Show availability and shipping details

Buy the selected items together


Editorial Reviews

About the Author

Matt Butcher is the principal consultant for Aleph-Null, Inc. (http://aleph-null.tv), where he specializes in content management systems, Linux system integration, and Open Source technologies. He has been an active participant in Open Source technologies for over a decade. Along with Learning Drupal 6, Matt has also written Mastering OpenLDAP, Managing and Customizing OpenCms 6, and Building Websites with OpenCms, all of which are published by Packt. When not pushing bits, Matt likes to explore Colorado with his wife and three daughters.

Product Details

  • Paperback: 340 pages
  • Publisher: Packt Publishing (March 9, 2009)
  • Language: English
  • ISBN-10: 1847196160
  • ISBN-13: 978-1847196163
  • Product Dimensions: 9.1 x 7.4 x 1 inches
  • Shipping Weight: 1.5 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Best Sellers Rank: #1,006,230 in Books (See Top 100 in Books)

More About the Author

Matt Butcher is a software developer and author. He has authored several books as well as dozens of articles on technology and philosophy. Matt is a Senior Developer for ConsumerSearch.Com, a New York Times Company. He is also a frequent contributor to numerous Open Source software packages, including QueryPath, Drupal, and Fortissimo. Matt blogs regularly at technosophos.com.

 

Customer Reviews

5 Reviews
5 star:
 (2)
4 star:
 (1)
3 star:
 (1)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
3.8 out of 5 stars (5 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

8 of 8 people found the following review helpful:
5.0 out of 5 stars Wow, this is easier than I thought, March 26, 2009
This review is from: Drupal 6 JavaScript and jQuery (Paperback)
Drupal version 6 ships with a Drupal JavaScript library (drupal.js) as well as a fairly recent and powerful library that is gaining followers rapidly called jQuery.

I have been waiting for this book to come out for months, since I first heard that it was being written. Now that I have had a chance to read it, I must say that it does not fail to please.

What I wanted to learn was why Drupal chose to include JavaScript in the Drupal core, what it is used to accomplish and how. I am very familiar with HTML and CSS, and am reasonably adept at reading and modifying PHP when necessary, so all the other main parts of Drupal are built using tools I know and understand. I wanted to find out how and why I would want to take advantage of the stated and implied benefits of including the free and open source jQuery library in sites I administer and design using Drupal.

The books starts off with a very quick introduction to Drupal. It is obvious that the intended audience is not newcomers, and that this is not a basic introduction level text. It is assumed that anyone reading this is familiar with web site creation and administration, web hosting basics, and knows how to install a Drupal site that uses the default theme. You get a quick tour of the main core features of Drupal and some nice web browser tools for developers. Then we get to the meat of the book.

Starting in chapter two we learn how to work with JavaScript in Drupal by writing a short js program and discovering how to include it in a node by incorporating a link to the script in a theme. This is a clear and great beginning.

Chapter three is dedicated completely to the jQuery library, what it is capable of doing, and how to use it the Drupal way instead of reinventing the wheel. The basic point here is that it is a lot easier to use a library to perform complex tasks than it is to write a complete JavaScript function, which would then need to be adapted for different browsers, and it is easy to call those library functions within Drupal because the Drupal developers have chosen to create ways to do so that are even easier than calling those library functions would be in a standard flat HTML/CSS page or some other content management systems. There are useful examples throughout such as how to make a set of announcements display one at a time at the top of your page, fading in and out, so that you can give several tidbits of information to your site guests without requiring all of the space on your page. Cool stuff.

The book contains useful information on how to use the drupal.js library, written by the Drupal developer community, to do many tasks, such as the sample collapsing blocks project that lets guests choose whether to allow information to be displayed or to shrink boxes so that there is more space on a page. We learn how to use js to create beautiful effects and help with site theming, how it can be used to translate your site into other language for guests, and even how to build your own modules.

I have only scratched the surface of the book. I am still learning the language. By intent, jQuery is a huge time saver and makes incorporating client side functions into your site easier than using the language alone, and the way the Drupal community has chosen to incorporate that library and write their own in addition makes it still easier. I am glad I picked up the book. Now, if you will excuse me, I need to go play.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
5.0 out of 5 stars A great way to learn about using Javascript and jQuery in Drupal., September 27, 2009
By 
Mark Noble (Parker, CO USA) - See all my reviews
(REAL NAME)   
This review is from: Drupal 6 JavaScript and jQuery (Paperback)
Drupal, is a powerful content management system that allows you to build professional, scalable websites without needing a large amount of programming knowledge. Many books have been written about using Drupal to create content and theme the content so it matches your look in feel. However, not much had been written about improving the experience of users as they interact with your website until Drupal 6 JavaScript and jQuery was written by Matt Butcher.

The majority of Drupal 6 Javascript and jQuery is structured as a series of projects with complete source code and detailed descriptions of how the project works and the design decisions the author made as he wrote the code. Projects real-time notifications for new comments, a templating system, a simple text editor, an rss viewer, auto-completion for search fields, collapsible blocks, and more. All projects are so well explained that anyone with basic programming knowledge in any language will be able to follow along, but experienced developers will not find the explanations tedious. This is an extremely difficult balance to strike in a technical book. I was also impressed that many of the projects were practical and could easily be extended for use in websites. The projects even gave me ideas that I could use for sites that are not Drupal based.

The book starts with a brief introduction to Drupal and the elements with Drupal that will be manipulated throughout the book. With that explanation done, the book quickly moves introduces as to two tools that will make developing Drupal based sites with Javascript easier. The first tool is Firebug a Firefox extension which includes a powerful Javascript debugger (plus loads of other great tools). The second tool is the Devel module for Drupal. The Devel module allows you to inspect much of what is going on behind the scenes in Drupal. The Theme developer information is especially relevant for this book.

After all of the tools are been introduced, the meat of the book starts and we learn the Drupal way of adding JavaScript to our site. Some of the most valuable advice in this section are the tips which will especially help novices to learn the basics. After a quick project to demonstrate including Javascript, we dive into jQuery. The introduction to jQuery section covers the basics of jQuery and demonstrates using jQuery outside of Drupal before a presenting a project with the two combined. Using this approach definitely makes it easier to understand the jQuery syntax if you haven't had a chance to try jQuery before.

After our tutorial on jQuery, we turn our focus back to Drupal and the functionality contained drupal.js in Chapter 4. The majority of the time is spent talking about Drupal behaviors which allow you to define code which runs when a specific condition is met. The chapter also explores other key functionality which Drupal provides to JavaScript developers. Projects in this section make extensive use of jQuery to minimize the amount of custom code which needs to be written. It's also nice to see the author include information about making your code more secure, a topic which is often ignored in the interest of streamlining code.

Next we move onto translations. I have to admit that this isn't the most exciting section of the book. However, my next project will be a multi-lingual site so I'm sure that I will be referring back to this section extensively during that project. Although the topic is a little dry, Matt does an excellent job explaining all of the intricacies of handling translations in JavaScript.

As we move out of the translation section, we journey into the world of themeing from a JavaScript perspective. Themeing is essential to every Drupal project regardless of whether you are using a contributed theme or creating a custom theme that you build from scratch. The themeing system within Drupal is remarkably sophisticated. However, much of that sophistication is not available within JavaScript. Therefore, the project for this chapter builds a framework to support themes in JavaScript. The themeing capabilities are very similar to those found within PHP and include the ability to define templates which can be overridden by other developers allowing presentation to be implemented independently from business logic. Although the project itself is complicated the explanation is easy to follow and well documented. The themeing system is used in all future projects throughout the rest of the book.

The next topic is AJAX and webservices. The projects in this chapter include a webclips project which displays a random item from an RSS feed and real-time comment notifications. The webclips project uses an XML feed to get data and the comment notification uses a JSON based data feed. The JSON feed is created using the Views module. The techniques used in this chapter can be used in a wide variety of projects.

Up to this point in the book, all code has been implemented within Drupal themes to keep the emphasis on JavaScript and jQeuery. In chapter 8, the book explores adding Javascript to a Drupal module. This is done to make the code easier to deploy and independent of the theme you are using on your site. The main project in this site focuses on extending the Simple Text Editor built in chapter 4. The revised editor adds additional capabilities to the editor, makes additional use of jQuery, and makes the code easier to maintain and extend. As always, the code is easy to understand and expertly described.

The final chapter features 2 projects which both a very cool factor and could be used on a majority of websites. Rather than describing them in detail here, I'll leave it to you to read more about them.

I highly recommend Drupal 6 JavaScript and jQuery to anyone building sites with Drupal that want to make their sites more interactive and leverage the power of JavaScript.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
2.0 out of 5 stars It must have been a good book 3 years ago, April 10, 2011
By 
This review is from: Drupal 6 JavaScript and jQuery (Paperback)
This is a well written book that has a lot of good information. The problem is that Drupal 6 must have changed a lot since it was written since I could only get about a third of the code samples to work. I downloaded the source code from the packt website, and still had issues. It was only when I got to the part about JSON that I noticed that the output in the book was drastically different from the output I was getting from the Views module.

I am tempted to give this 4 stars because I learned a lot going back and debugging this books source code, but I won't because after a week I've only got about 50% working and no idea how to fix the rest.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews



Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
new node, content management, module development, object notation, var stickies, web clips area, theming function, sticky nodes, theming system, hook init, node teasers, newest comment, comment watcher, php print, natura mentis humanae, accordion widget, documentation block, ready handler, text area element, theme engine, collapsible region, anonymous function, var buttons, placeholder function, php template
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Drupal Core, Drupal Web Services, Drupal Behaviors, Packt Publishing, Learning Drupal, Enable Theme, Lots of Text, Views Datasource, Better Editor, Net Options, Frobnitz Central, Really Simple Syndication, Gettext Portable Object, Hello World, Good Day, Info File, Click Handler, Simple Editor
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(1)
(1)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject