Start reading DOM Scripting on the free Kindle Reading App or on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.
Programming Books C Java PHP Python Learn more Browse Programming Books

Deliver to your Kindle or other device

Enter a promotion code
or gift card
 
 
 
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

DOM Scripting: Web Design with JavaScript and the Document Object Model [Kindle Edition]

Jeremy Keith , Jeffrey Sambells
4.4 out of 5 stars  See all reviews (93 customer reviews)

Digital List Price: $27.99 What's this?
Print List Price: $34.99
Kindle Price: $15.39
You Save: $19.60 (56%)

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your email address or mobile phone number.

Formats

Amazon Price New from Used from
Kindle Edition $15.39  
Kindle Edition, December 29, 2010 $15.39  
Paperback $25.82  
Unknown Binding --  
Kindle Daily Deals
Kindle Delivers: Daily Deals
Subscribe to find out about each day's Kindle Daily Deals for adults and young readers. Learn more (U.S. customers only)

Book Description

With this second edition of the popular DOM Scripting: Web Design with JavaScript and the Document Object Model comes a modern revision to update best practices and guidelines. It includes full coverage of HTML5 in a new, dedicated chapter, and details on JavaScript libraries and how they can help your scripting.

The book provides everything you'll need to start using JavaScript and the Document Object Model to enhance your web pages with client-side dynamic effects and user-controlled animation. It shows how JavaScript, HTML5, and Cascading Style Sheets (CSS) work together to create usable, standards-compliant web designs. We'll also cover cross-browser compatibility with DOM scripts and how to make sure they degrade gracefully when JavaScript isn't available.

DOM Scripting: Web Design with JavaScript and the Document Object Model focuses on JavaScript for adding dynamic effects and manipulating page structure on the fly using the Document Object Model. You'll start with a crash course in JavaScript and the DOM, then move on to several real-world examples that you'll build from scratch, including dynamic image galleries and dynamic menus. You'll also learn how to manipulate web page styles using the CSS DOM, and create markup on the fly.

If you want to create websites that are beautiful, dynamic, accessible, and standards-compliant, this is the book for you!

What you’ll learn

  • Apply dynamic behavior to your pages without inserting JavaScript in your markup
  • Write scripts that degrade gracefully when JavaScript isn’t available
  • Use web standards to ensure cross-browser compatibility
  • Harness the power of the DOM to create user-controlled animation
  • Also includes an introduction to Ajax

Who this book is for

This book is for web developers wanting to expand their knowledge of the DOM to add interactivity and functionality to their web pages.

Table of Contents

  1. A Brief History of JavaScript
  2. JavaScript Syntax
  3. The Document Object Model
  4. A JavaScript Image Gallery
  5. Best Practices
  6. The Image Gallery Revisited
  7. Creating Markup on the Fly
  8. Enhancing Content
  9. CSS-DOM
  10. An Animated Slideshow
  11. HTML5
  12. Putting It All Together
  13. DOM Scripting Libraries


Editorial Reviews

About the Author

Jeremy Keith is a web developer living and working in Brighton, England. Working with the web consultancy firm Clearleft (Clearleft.com), he enjoys building accessible, elegant websites using the troika of web standards: XHTML, CSS, and the DOM. His online home is Adactio.com. Jeremy is also a member of the WebStandards.org, where he serves as joint leader of the DOM Scripting Task Force. When he's not building websites, Jeremy plays bouzouki in the alt.country band Salter Cane (SalterCane.com). He is also the creator and curator of one of the web's largest online communities dedicated to Irish traditional music, TheSession.org.

Jeffrey Sambells is a graphic designer and self-taught web applications developer best known for his unique ability to merge the visual world of graphics with the mental realm of code. With a bachelor of technology degree in graphic communications management along with a minor in multimedia, Jeffrey was originally trained for the traditional paper-and-ink printing industry, but he soon realized the world of pixels and code was where his ideas would prosper. In late 1999, he cofounded We-Create, Inc., an Internet software company based in Waterloo, Ontario, which began many long nights of challenging and creative innovation. Currently, as director of research and development for We-Create, Jeffrey is responsible for investigating new and emerging Internet technologies and integrating them using web standards-compliant methods. In late 2005, he also became a Zend Certified Engineer. When not playing at the office, Jeffrey enjoys a variety of hobbies from photography to woodworking. When the opportunity arises, he also enjoys floating in a canoe on the lakes of Algonquin Provincial Park or going on an adventurous, map-free, drive with his wife. Jeffrey also maintains a personal website at JeffreySambells.com, where he shares thoughts, ideas, and opinions about web technologies, photography, design, and more. He lives in Ontario, Canada, eh, with his wife, Stephanie, his daughter, Addison, and their little dog, Milo.

Product Details

  • File Size: 3308 KB
  • Print Length: 331 pages
  • Page Numbers Source ISBN: 1430233893
  • Publisher: friendsofED; 2 edition (December 29, 2010)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B004I6DD88
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Lending: Enabled
  • Amazon Best Sellers Rank: #700,785 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?.


Customer Reviews

Most Helpful Customer Reviews
110 of 112 people found the following review helpful
Format:Paperback
This book is directed toward scripters at the beginning and intermediate level. This is also a very good book for the veteran scripter who wants to re-tool as DOM-based techniques take hold.

I think Jeremy Keith takes the best road when he launches directly into DOM methods and objects, only mentioning the older ways for completeness. Most often, JavaScript books do the opposite -- mentioning DOM scripting only as an advanced art. But why learn the older ways when you must unlearn them later?

The author focuses on teaching correct methods and approaches, often taking the long way around to make it easier to see the larger picture. This requires a lot of forethought and organization on the part of an author and here the material excels. I don't think anyone will trip up following this guide through the Web script jungle.

The author also avoids the unbearable humor and cutesy language encountered so often in tech books. Thank you Mr. Keith! This is good, clear writing to go with good, clean scripting.

Quibbles: I think the author should have been more concerned with compatibility issues, esp. with IE6, the decrepit but still dominant browser. For instance, on pp 200-01, he recommends using the setAttribute() method to set a class but does not mention that IE improperly demands "className" as a parameter. His snippet would fail in IE. The chapter on CSS scripting was good but barely scratched the surface, not mentioning a bunch of cool scriptable objects.

Overall, this book is a worthy tool that should be welcomed by the target audience.
Was this review helpful to you?
50 of 50 people found the following review helpful
5.0 out of 5 stars Finally, a book to teach us JavaScript DOM January 28, 2006
Format:Paperback|Verified Purchase
There's been a lull in the past couple years with JavaScript books. Even though there are many sites that use DHTML and DOM scripting, there never was any books that really explain how to do these very useful and cool effects. Plenty of websites to download and copy code, but nothing that really explains how to do it. UNTIL NOW!!!

The moment I start reading the first chapter, I knew I would finally learn what DOM scripting really meant. I've read through many basic JavaScript books from different publishers but all of them just briefly described how the DOM worked in one brief chapter. The whole DOM Scripting book talks about it.

The first 2 chapters are a brief refresher course of the JavaScript basics, and then the 3rd chapter starts in with the DOM. After a thorough explanation of what it is and how it can be used, the next chapters go through various projects in reviewing how it can be used in real life web design.

There are eight chapters that explain and show you how DOM scripting can be used. The final chapter talks about the future of scripting and gives examples of AJAX--a great bonus!

I highly recommend this book to anybody who wants to take their JavaScript code to the next level. It's also a great book to help would-be AJAX programmers as well. Since you have to have a very good understanding of DOM to create AJAX applications.
Comment | 
Was this review helpful to you?
37 of 39 people found the following review helpful
5.0 out of 5 stars The Perfect Javascript/DOM book for beginners March 24, 2006
Format:Paperback|Verified Purchase
When a Javascript/DOM book:

1) ..starts by introducing Javascript and it's syntax instead of jumping into DOM immediately.

2) ..Explains every single bit of code in a simple language.

3) ..uses simple and easy-to-follow code.

4) ..Starts a chapter with a very simple program and build on it as you read.

5) ..lets you put up your first useful/practical Javascript script in a few hours.

6) ..encourages you to 'understand' the code instead of 'memorizing' it

7) ..is written by Jeremy Keith

..Then you know it's worth every single cent you spend on it. I have nothing to say here except that if you're someone who knows nothing about Javascript/DOM and is willing to learn it, then you really shouldn't miss this book. But If you're an intermediate or advanced Javascript/DOM coder, then buying this book is not a good idea. It was solely made for begginers.
Was this review helpful to you?
23 of 24 people found the following review helpful
Format:Paperback
The intent of the author is to show how JavaScript, with the DOM Api, can indeed be used in an intelligent way, debunking the myth (somehow justified by the horrific javascript code laying around) that "scripting languages" are somehow inherently inferior to compiled ones. Incidentally, this effort is similar to what Damian Conway has recently done, in a larger scale, for Perl ("Perl Best Practices").

The book is at its best when it describes how to methodically partition the design of a web page in 3 areas: the content-markup (xhtml), the presentation (css), the behavior (JavaScript, DOM). Jeremy Keith achieves this not by abruptly inflicting the reader with massive dosis of W3C standards, but rather "by evolution", taking one example (an "image gallery") coded in the traditional way, and continuously improving and refining it. Incidentally, the web pages that emerge are of a stunning beauty.

The book has its weak moments; I mention only two of them, one on the theory, the other on programming:

1) an apparent inconsistency on the properties of childNode[] array. After having repeatedly stated that this array contains ALL the children of an element node ("including the attribute nodes", see p. 67), it suddenly states (p. 70, p. 154, etc) that the text node of a paragraph node is the first and ONLY node of childNodes[]. Some tests (using elements that had attributes) confirmed that this last statement was correct. So, apparently, the childNodes[] array of an element does NOT report its attribute nodes, contradicting the first assertion.

2) the function "showPicture()", the central routine of the example that runs across all the book. All is fine, until Jeremy suddenly decides to change (ch 6, p.
Read more ›
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars What A Great Book!
This is an outstanding book. I has excellent step-by-step examples, and explains things that I’ve never read in other programming books. Read more
Published 5 months ago by J. Dadlez
3.0 out of 5 stars a necessary evil
first they tell you that you have to learn all the stuff in this book. if you pass that class and go on to the next, they tell you to forget everything from the previous class and... Read more
Published 9 months ago by patrick reed
5.0 out of 5 stars A very good Read and a must if you are keen to develop your own...
So far this book has broken down every part step by step. I have not completed this book yet but i am looking forward to every chapter going forward.
Published 11 months ago by Adam
2.0 out of 5 stars Was hard for me to read
I had to use this for an intro coding class when we didnt know what to do. This is not a good book for intro stuff. Read more
Published 16 months ago by Shiro
4.0 out of 5 stars Outdated, but still a very easy and useful introduction
Dom Scripting is a subject that many authors have shied away especially in the past years, to avoid having to tackle the annoying browser inconsistencies, and this is a real pity... Read more
Published 16 months ago by Riccardo Audano
5.0 out of 5 stars Best Book I found on JS!
SUPER clear and easy to read. Very well done exercises and concepts well explained. I loved this book and learned a ton from it! GREAT reference!!!
Published 18 months ago by M. J. Phillips
5.0 out of 5 stars Very clear and well-written
I found this book to be very useful in explaining the fundamentals of the DOM. Tips for coding in Javascript to increase the likelihood that it will work across different browsers... Read more
Published 20 months ago by Ted Frick
5.0 out of 5 stars Best book to learn DOM
It's the best book to learn how to manipulate DOM with javascript.

You won't learn in depth about javascript but enough to understand the DOM. Read more
Published 22 months ago by Quoc Doan
3.0 out of 5 stars Required for class
This book is extremely difficult to follow and find necessary information, I relied more on websites than this book to get work done.
Published 22 months ago by Alexa Sonderman
3.0 out of 5 stars decent book
It has the basic needs of a book. i learned a little. i really actually didn't read it. been to busy.
Published on September 18, 2012 by Darren
Search Customer Reviews
Search these reviews only

What Other Items Do Customers Buy After Viewing This Item?


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Look for Similar Items by Category