DOM Scripting Web Design with JavaScript and the Document Object Model

***** Mar252007

Yes, JQuery and other javascript libraries have made manipulating your pages with javascript a much easier (even fun!) task, but I believe DOM Scripting is essential reading even for those using these libraries, because it gives you a solid understanding of what they are accomplishing for you behind the scenes.

The Fundamentals of Javascript and the DOM

Chapters 2 and 3 of DOM Scripting explain the basics of javascript and the Document Object Model, respectively. Whether you’re working with javascript or not, if you’re building an html page, it’s quite helpful to understand its structure: the DOM, and the author lays it out very clearly.

Chapter 4 introduces a ubiquitous real-world example, an image gallery, which is revisited and improved upon throughout the book.

Chapter 5, “Best Practices”, delves into graceful degredation, unobtrusive javascript (essentially the separation of content and behavior), and how to maintain accessibility and cross-browser compatibility. Because libraries make is so easy to add bells and whistles to your pages, these concepts are especially important.

Real-world Javascript

The latter half of the book includes a number of real-world applications of DOM scripting, and continues to introduce good coding practices like avoiding repetitive code by writing functions. Chapter 11 consists of a complete case study, from the structure to the css, to enhancement via DOM scripting.

Conclusion

Not only does DOM Scripting take you from elementary javascript to some really practical applications of it for your websites, it gives you a strong fundamental methodology for tackling problems you want to solve with javascript. At the end of working through this book, you are simply a better coder.

Respond to this review

Author(s)Jeremy Keith
PublisherFriends of ED
Pages368
Published2005
ISBN-101590595335
Category
Tags
Rating*****

No comments yet…Be the first!

Comments are closed for this article.