AdvancED DOM Scripting

Dynamic Web Design Techniques

By Jeffrey Sambells , Aaron Gustafson

AdvancED DOM Scripting Cover Image

If you've got a reasonable understanding of JavaScript and the DOM, but now you want to take your skills further, then this book is for you.

Full Description

  • ISBN13: 978-1-59059-856-6
  • 592 Pages
  • User Level: Beginner to Advanced
  • Publication Date: August 2, 2007
  • Available eBook Formats: PDF
  • Print Book Price: $49.99
  • eBook Price: $34.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

As a web designer or developer, you know how powerful DOM scripting is for enhancing web pages and applications, adding dynamic functionality and improving the user experience. You've got a reasonable understanding of JavaScript and the DOM, but now you want to take your skills further. This book is all you need—it shows you how to add essential functionality to your web pages, such as on the fly layout and style changes, interface personalization, maps and search using APIs, visual effects using JavaScript libraries, and much more.

  • Includes a quick recap of the basics, for reference purposes
  • Packed with real world JavaScript solutions from beginning to end
  • Written by Beginning Google Maps author Jeffrey Sambells, and includes a case study by JavaScript guru Aaron Gustafson

What you’ll learn

  • A quick recap of the HTML and CSS DOM, methods, and events
  • The basics of how to add dynamic effects and respond to user actions to your web sites using CSS and JavaScript
  • Introduces Ajax to the mix, showing you how to use it, and when not to use it
  • Best practices (such as graceful degredation) and productivity improvement via code reuse (libraries and APIs)
  • Create Mashups using search, photo and mapping APIs
  • Build better, more dynamic user experiences using libraries such as Prototype and Scriptaculous

Who this book is for

This book is for intermediate to advanced web designers and developers who already have a reasonable to good knowledge of HTML, CSS, and JavaScript.

Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 132:

Should window['ADS']['camelize'] = camelize;
read uncamelize?
/********************************
* Chapter 4
*********************************/

/**
* Convert camel case wordWord strings to hyphenated word-word strings.
*/
function uncamelize(s, sep) {
sep = sep || '-';
return s.replace(/([a-z])([A-Z])/g, function (strMatch, p1, p2){
return p1 + sep + p2.toLowerCase();
});
}
window['ADS']['camelize'] = camelize;

On page 232:

Error: uncaught exception: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "file:///Users/ck/Documents/EDU/JS/AdvancED%20DOM%20Scripting%20/iamamused-foED-AdvancED-DOM-Scripting-2f83ace/ADS-final-verbose.js Line: 769"]