Slashdot Mirror


Dynamic HTML: The Definitive Reference (2nd Ed.)

honestpuck writes "Many years ago I learnt my AppleScript skills from a book by a gentleman by the name of Danny Goodman and I was happy to find him tackling the subject of dynamic HTML in "Dynamic HTML: The Definitive Reference". Indeed this is the second edition and seems supremely up to date." Read on for the rest of honestpuck's review. Dynamic HTML: The Definitive Reference (2nd Ed.) author Danny Goodman pages 1343 publisher O'Reilly rating 9 reviewer Tony Williams ISBN 0596003161 summary Truly definitive reference for a huge topic

Goodman has tackled a complex subject. With changing standards and even quicker changing browser compatibility it can be a nightmare trying to get a dynamic web site working across disparate browsers and operating systems. A guide that tells you exact syntax and exact compatibility can be invaluable, but is only as good as the research behind it, an area where I cannot fault Goodman.

This volume covers XHTML, CSS and DOM with a large smidgeon of JavaScript. It's not an easy book to get into and consume in large chunks as it does little hand holding but as I was prepared to knuckle down and work at the topics (with much help from various web sites such as CSS Zen Garden) I found it perfect for me. Goodman has recently released JavaScript & DHTML Cookbook which I have found to be a marvelous volume to assist the process of understanding these technologies, though I am still looking for a good, up to date tutorial on CSS (recommendations welcome).

The target audience would be best summed up as those who have done a fair amount of HTML hand coding and some work in dynamic HTML. The book also adds that you should have "the basics of client-side scripting in JavaScript" and I would agree, when I first acquired this book my JavaScript skills were exceptionally primitive (mainly at the 'plug in example' stage) and found the latter sections of this book heavy going and not much help; now that I am a better JavaScript programmer I find these parts much easier to understand and use.

The book is divided into four parts, 'Applying Dynamic HTML,' 'Dynamic HTML Reference,' 'Cross References,' and 'Appendixes'. I found the first part particularly helpful when converting my old site across to a more dynamic CSS-based site as it helps with various strategies for making sure your content works across browsers and various methods for making sure that visitors with older browsers and search engines can still retrieve valid pages. Goodman's approach of increasing complexity through this part also suited a movement from a straight HTML site to one using XHTML and CSS. This is also where Goodman's writing can shine: it's an excellent guide to all the technologies and acronym soup. The appendices are marvelous, from 'A,' a list of colour names with their RGB value, through a list of character entities to a 50-page list of all HTML tags, their attributes and if they are supported in the two HTML 4 and three XHTML 1 standards.

The reference parts are well structured with extensive notes on browser support and which particular standard (DOM 1, DOM 2, CSS 1, CSS 2, or none) the tag or attribute comes from. For example, in the DOM section the reference gives you the object name, which versions of Navigator and Explorer support it, the DOM version (if any), a short explanation, then an object reference example, list of properties, methods and event handlers. For each of the properties it gives an example, the type and if it is read-only or read/write. For methods it gives the return value and parameters. This sort of attention to fine detail is taken throughout the book. You end up with a book 1343 pages long and a 51 page index. Goodman mentions in his preface that the book now encompasses 'more than 15,000 unique instances of properties, methods and event handlers,' a figure I'd believe.

O'Reilly have their usual page for this book that includes a sample chapter in PDF, the Index, Table of Contents and an Errata page. There are few Errata and only one in the code examples. Speaking of examples, you can download the complete set of code examples from the book.

There is also a page at O'Reilly for the author, Danny Goodman with links to some excellent articles and book excerpts on dynamic HTML and JavaScript.

I found this a hard book to review, as are most references. The questions I asked were: one, Does the book cover all the material?; two, Is it correct?; three, Is it easy to find the entry you want? and four, Are the entries laid out in an easy to understand manner? In these criteria this volume rates well, with the added bonus of some good material in the first section for understanding the nuances of dynamic HTML in a multiple browser, multiple operating system world.

If you are doing a lot of work in dynamic HTML then this book is probably an essential. While I don't consult it every time I start working on HTML when I run into trouble it is the first place I turn to make sure my syntax and browser compatibility are straight. This book ain't cheap, and it ain't small but I'd recommend it for your desk if you're working with web sites.

You can purchase the Dynamic HTML: The Definitive Reference (2nd Ed.) from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

9 of 263 comments (clear)

  1. When will the fat lady sing? by Anonymous Coward · · Score: 3, Insightful
    When will Opera actually support the meatier parts of DHTML?

    Waiting around for everyone to start writing fully standards-compliant DOM-based DHTML is like waiting for the world to learn Esperanto.

  2. Re:2nd Edition? by el-spectre · · Score: 4, Insightful

    Heh, it was for its time, but with the new browser versions, the 2nd edition is about twice the size as the old ones. 'tis the problem with client side web stuff, new browsers don't mean that you can stop supporting the older ones.

    I have this book, and it's neither cheap nor light, but definitely worth having as a reference.

    --
    "Faith: Belief without evidence in what is told by one who speaks without knowledge, of things without parallel." - A.B.
  3. Anachronism by jabbadabbadoo · · Score: 2, Insightful
    "For example, in the DOM section the reference gives you the object name, which versions of Navigator and Explorer support it,"

    Navigator is dead. So why the effort?

    No, I would rather see a book covering Explorer, Mozilla and Opera.

  4. Dynamic HTML by PhysicsGenius · · Score: 2, Insightful
    OK, you web "coders", listen up. We, the general surfing public, are sick of Java, Flash, Javascript, CSS and "dynamic" anything. HTML was good enough for our grandparents and parents, HTML is good enough for us. It's a content description language, not a layout engine. We want data. When we click a link, we don't expect to see spinning globes or slowly assembling menus--we just want the next piece of data. Recent studies have found that up to 95% of bandwidth is wasted through over-designed websites. Add to that the cost of paying the glorified typists who create these sites and you are looking right at the reason the Internet bubble burst.

    Look at Slashdot. With just a few lines of elegant Perl, Taco et al have created a slick, funcational, speedy, high-reliability site that eschews beauty in favor of pure information. Take your queue from these guys, web monkey.

    1. Re:Dynamic HTML by ceeze · · Score: 5, Insightful

      I agree that most web sites do not need extensive client-side scripting to be effective (slashdot is an excellent example). However, believe it or not, many businesses want to buy *Applications* that run in web browsers. They don't want the hassle and expense of deploying traditional client-server apps, but still want the functionality and usability of them.

      Standard HTML doesn't do that.

      Taking your example, even something as providing feedback in the form of an hourglass cursor while a lengthy operation is taking place has a measurable effect on the usability of these applications, especially for our target users (which is clearly not you). The browser is much more of an application platform than a simple layout engine.

    2. Re:Dynamic HTML by nick_davison · · Score: 2, Insightful

      Take your queue from these guys, web monkey.

      Oh, well, thank god it's just the web monkey's that fuck it all up. It's like the engineers that fucked up the roads by building massive SUVs and the musicians who fucked up the music industry. Now we know who to blame, we can tell them all to just fix it, right?

      Wrong.

      The reality is that web monkeys are just that, web monkeys. There are very, very few web gurus out there. In almost every case, they're working for managers who don't really understand the web but do understand that producing the greatest streamlined product in the world doesn't begin to compete with providing flashy things when reassuring senior management about why they just spent so much on a website.

      Producing excellent content is extremely hard. Not only is it extremely hard, it requires constant updating and investment. Yet when you present that to a marketing director or a CEO, in the ten minute window they have, they see "Hmm, looks kinda boring."

      Not only that, but it's a false assumption that users migrate to raw HTML sites. Slashdot actually has a lot of design elements in place. Raw HTML as is being advocated and Slashdot are actually two different things. Slashdot actually uses a lot of tables, a lot of different styles, a lot of color, contrasting backgrounds etc. It's cleaner, yes, but it's also not raw HTML. Raw HTML is practically unnavigable for any amount of content because it's so hard to find what you're after and because, whether fair or not, users perceive it as less appealing.

      So, we web monkeys would love to design cleaner sites. But, we're just the monkeys - we're part of a corporate world where budgets get signed by people with a lot less understanding of the web. Those who wave the "raw HTML" banner just serve to muddy the waters by not really getting what they're talking about anyway.

    3. Re:Dynamic HTML by Superfreaker · · Score: 3, Insightful

      "Look at Slashdot. With just a few lines of elegant Perl, Taco et al have created a slick, funcational, speedy, high-reliability site that eschews beauty in favor of pure information. Take your queue from these guys, web monkey."

      Anyone who tries to use slashdot on a wireless device knows that slashdot is one of the heaviest, ill-formed sites around.
      The homepage weighs 120K.

  5. Actually... by Anonymous Coward · · Score: 2, Insightful

    the definitive reference for HTML is located at the W3C.

  6. Re:Duplicate article by Ed+Goforth · · Score: 4, Insightful

    And why is having more than one review a bad thing? I'd rather see two decent reviews of the same book (and especially a book as encompassing as this) than one sorry review of a bad book.