Drupal 6 JavaScript and jQuery (Paperback)

Matt Butcher

  • 出版商: Packt Publishing
  • 出版日期: 2009-02-27
  • 定價: $1,400
  • 售價: 2.8$399
  • 語言: 英文
  • 頁數: 340
  • 裝訂: Paperback
  • ISBN: 1847196160
  • ISBN-13: 9781847196163
  • 相關分類: DrupalJavaScriptjQuery
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

相關主題

商品描述

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

  • Learn about JavaScript support in Drupal 6
  • Packed with example code ready for you to use
  • Harness the popular jQuery library to enhance your Drupal sites
  • Make the most of Drupal's built-in JavaScript libraries

In Detail

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.

What you will learn from this book?

  • 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

Approach

This book focuses on teaching by example. Chapters are packed with example code, providing hands-on examples you can play with and then release to your own Drupal sites. By introducing short projects interspersed with discussion, the pace is rapid yet practical.

Who this book is written for?

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.

商品描述(中文翻譯)

將jQuery、AJAX和JavaScript效果應用於Drupal 6模組和主題

這本書專為網頁設計師和開發人員而寫,將帶您深入了解在Drupal 6中可以使用JavaScript(尤其是jQuery)做些什麼。

Drupal 6搭載了許多新功能,並非全部都是使用PHP實現的。這本獨特的書籍將帶您了解在Drupal 6中可以使用JavaScript(尤其是jQuery)做些什麼。

通過將強大的jQuery庫與Drupal 6自帶的強大JavaScript工具結合使用,您可以創建強大的AJAX腳本、華麗的視覺效果和增強的行為。此外,Drupal開發人員還將一些最強大的PHP工具(如主題引擎和本地化和語言翻譯支持)移植到JavaScript中,使得可以使用簡單的腳本來替代以前只能使用複雜的PHP代碼的情況。

本書將向您展示如何使用Drupal的JavaScript庫,使您的模組和主題更具動態、互動和響應性,並添加效果,使您的Drupal網站更加生動!

如果您已經開始接觸Drupal 6的主題或模組開發,這本書將幫助您使您的作品在外觀和行為上更加特別。通過項目為基礎的方法,本書將引導您從JavaScript如何適應整體Drupal架構開始,直到成為Drupal主題和模組中jQuery庫的專家。

本書將通過示例代碼進行教學。每章都包含大量示例代碼,提供實際操作的示例,您可以在自己的Drupal網站上使用。通過介紹短期項目並交替討論,進度快速而實用。

本書適合網頁設計師和開發人員,他們希望將JavaScript元素添加到Drupal主題或模組中,以創建更靈活和響應式的用戶界面。

您需要了解Drupal的基本操作,並熟悉Drupal中的主題和模組的概念。不需要有創建主題或模組的經驗。

您需要了解客戶端網頁開發的基礎知識,包括HTML、CSS,以及對JavaScript語法的基本了解。熟悉PHP編程將是一個優勢,因為我們將編寫PHPTemplate文件並(最後)創建Drupal模組。然而,PHP的內容足夠詳盡,即使對PHP不熟悉的讀者也能夠理解。本書還涵蓋了jQuery JavaScript庫及其在Drupal中的使用,但不需要了解jQuery的知識-您將在本書中學到所需的一切。