Advanced Search
Start Your Free Trial

Overview

On numerous online forums for JavaScript and DHTML, the majority of questions begin with "How do I...?" This new Cookbook provides the answers. After reading thousands of forum threads over the years, author and scripting pioneer Danny Goodman has compiled a list of problems that frequently vex scripters of various experience levels. He has now applied state-of-the-art ECMA and W3C DOM standards and used best practices to create this extensive collection of practical recipes that can bring your web pages to life. The JavaScript & DHTML Cookbook is all about adding value to the content of a web page. The book focuses on practical and sensible applications of scripting, rather than flying images and gratuitous color changes. For every problem Goodman addresses, there's a solution or "recipe"--a focused piece of code that web developers can insert directly into their applications. Yet, rather than just cut-and-paste code, you also get explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to your designs. The recipes range from simple tasks, such as manipulating strings and validating dates in JavaScript, to entire libraries that demonstrate complex tasks, such as cross-browser positioning of HTML elements and sorting tables. This book contains over 150 recipes on the following topics:

  • Working with interactive forms and style sheets

  • Presenting user-friendly page navigation

  • Creating dynamic content

  • Producing visual effects for stationary content

  • Positioning HTML elements

  • Managing browser windows and multiple frames

This book is the ideal companion to O'Reilly's JavaScript: The Definitive Guide and Dynamic HTML: The Definitive Reference. If you own either of these books, the JavaScript & DHTML Cookbook is a must.

Amazon.com® Reader Reviews (Ranked by Helpfulness)

Average Amazon.com® Rating: 4.5 out of 5 rating Based on 32 Ratings

JavaScript & DHTML Cookbook - 2009-04-20
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I can honestly say this is the best JavaScript reference I have ever read. The writing style is both engaging and informative. Every recipe presents solutions to common scripting problems that are browser neutral, and "best practices" style JavaScript. If you don't already own JavaScript & DHTML Cookbook (2nd edition), I suggest you make this your next purchase.

Great, unless you are using a framework like jQuery - 2010-08-06
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
While I don't want to turn people away from this book, I would like to point out that many of the recipes in this book (like DOM manipulation, Ajax, styling, etc.) can be done more easily using a framework like jQuery. I suppose that is why I was somewhat disappointed by this book; most of the things it accomplishes can be solved using a few lines of jQuery.

I gave it five out of five stars for two reasons: First of all, it does provide some excellent examples, especially in departments where jQuery isn't all that useful like string manipulation and arrays. The date manipulation recipes are very useful as well. Secondly, I didn't think it was fair to give it anything lower just because I don't use all of the material in it. I'm sure that eventually I will end up doing some kind of raw DOM manipulation without jQuery, whether it be with Greasemonkey userscripts or on portable devices, or for very short scripts.

In my opinion, this book is for someone who is not using jQuery (either because they don't want to or can't) or for someone who is developing a JavaScript framework. I would also recommend it for anyone who wants easy-to-use examples of array, string, and date manipulation.

Great for reference and learning - 2009-12-30
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I was still relatively new to Javascript when I got this book, so I just went through all of the code examples one-by-one to see how they worked. It was a great way to learn, and the book has stayed on my desk ever since for reference.

Very useful, lots of gems - 2009-06-19
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I'm a beginner/intermediate JS programmer and I found this book tremendously useful. I had to design a site for control and monitoring of an embedded device and this book more than paid for itself in the first few weeks. This is not for beginners, although I learned a great deal about the DOM and several JS browser-specific quirks simply by perusing the various "recipes". I would recommend that beginners start with a tutorial-style book first or some of the free online stuff, such as [...] and then get this book. If you use only a few of the recipes and it saves you time, its more than worth the price.

Good JS book - 2009-03-18
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Like most of the cookbooks, this is perfect for a new JS programmer - like me.

Some information on this page was provided using data from Amazon.com®. View at Amazon >


About Safari Books Online • Terms of Service • Privacy Policy • Contact Us • Corporate Licenses • Help • Accessibility | See us on FacebookSee us on Linked InSee us on TwitterRSS

Copyright 2010 Safari Books Online. All rights reserved.