Ajax: The Definitive Guide

Ajax: The Definitive Guide
Authors
Anthony T. Holdener III
ISBN
0596528388
Published
25 Jan 2008
Purchase online
amazon.com

Is Ajax a new technology, or the same old stuff web developers have been using for years? Both, actually. This book demonstrates not only how tried-and-true web standards make Ajax possible, but how these older technologies allow you to give sites a decidedly modern Web 2.0 feel. Ajax: The Definitive Guide explains how to use standards like JavaScript, XML, CSS, and XHTML, along with the XMLHttpRequest object, to build browser-based web applications that function like desktop programs.

Page 2 of 2
  1. Editorial Reviews
  2. Customer Reviews

Customer Reviews

E. Peck said
This book was a bit intimidating and it took me a while to get through it. The nice thing is that all that reading was worthwhile because I gained a very thorough understanding of Ajax and its associated technologies. I would recommend this title to anyone who wants to know what Ajax is, how it works, etc. and is serious about it.

This book is not for someone looking for a quick and dirty intro. But it wont leave the reader wondering either - this is a deep dig into Ajax.

Pranab Ghosh said
If you are looking for a book with thorough treatment of Ajax, you are in the right place. The book does justice to it's title. I appreciate all the code snippets. However, they tend to repititive. When presentig a variation of a code snippet already presented, the author repeats the whole code snippet, instead of just highlighting the differences.

The Commodore said
Let me preface this review by saying that I have never been a fan of thick programming or computer books. If a book is 2 inches thick, I often find only 1/2 to 1 inch of it to be valuable. However, most of Ajax: The Definitive Guide seems to hit the mark. Since Ajax development is such an expansive, and rapidly changing, topic, it is perhaps a good idea to shoot for too much rather than too little information. Most developers will find this book not only a good learning guide, but also a handy reference for a wide variety of coding needs.

One thing you will notice when scanning through this book is that there is a *lot* of code. The author is not afraid to publish pages and pages of Ajax code for readers to consider, copy and hack up to create their own applications. Not all is useful in real-world applications, however, since some of it is not cross-browser compatible (most often failing in Internet Explorer).

The first three chapters are largely an introduction to Web technologies, and can be skipped by most developers. In Chapter 4, the author introduces the XMLHttpRequest object, the object that puts the "asynchronous" in Ajax (an acronym for "asynchronous JavaScript and XML"). He details how to make simple applications that pull information from server-based XML or JSON, an alternative data format well suited to Ajax. Chapter 5 deals with Document Object Model programming, a critical task that allows developers to change the look and content of Web pages that have already been rendered.

After these foundational concepts, Part 2 contains nine chapters that provide specific solutions to common Web programming needs. Readers learn the ins and outs of creating Ajaxified navigation, forms, lists, tables, frames, etc.

Part 3, called "Ajax in Applications," goes a step farther by showing the reader how to integrate Ajax with other applications. Chapter 16, for example, shows the reader how to incorporate Ajaxified Google search into a site and even include such dynamic features as search hinting. Other chapters in this section introduce Web services, Web APIs and even show how to create Ajax animated games.

Part 4 contains two chapters that show readers how to create more modular code, and how to create faster, more compressed code. This is critical considering the importance of speed to the user experience in Ajax.

One of the book's shortfalls is the lack of information about the various Ajax libraries. Libraries and frameworks provide solutions to common programming needs: ready-made widgets, improved JavaScript programming notation, useful objects and easy cross-browser compatibility. The author includes a brief introduction to the libraries in chapter 4 and a reference in Appendix B. There are also mentions of the major libraries scattered throughout the chapters. However, it would be worthwhile to include at least a chapter devoted to each of the major libraries such as Dojo, Prototype and jQuery.

Mostafa farghaly said
i always trust "The defenitive guide" titles from oreilly and this book is no exception , it covers everything in the Ajax world begin with the fundamentals and every related technology , then dive into how using these technologies for real world applications , then covers WEB dervices ,mashups and API , then end up with modular coding best practices during all app developements phases , and the most interesting part is the reference which covers the most popular ajax frameworks , popilar web services api , and what you need to know about Xpath and XSLT .

Michael Macrone said
While "Ajax: The Definitive Guide" is certainly exhaustive, it's hard to have confidence in a text so riddled with errors. Other O'Reilly titles I've purchased in the last few years suffer from the same problem: very poor copy editing. In a "Definitive Guide," this is inexcusable.

Furthermore, he author's decision to rely on the Prototype framework is misguided. It saves a few lines of code per page, but one expects a "Definitive Guide" to define, explore, and use the actual objects and methods defined by the language itself, not those defined in one of many, many external libraries.

It is also somewhat comical to read on page 10 that developers, rather than browser vendors, "are to blame for not adopting standards" and that they are "stuck with the mentality of the 1990s, when browser quirks mode, coding hacks, and other tricks were the only things that allowed code to work in all environments," and then to read on page 191 that "Yes, there are always caveats in the world of standards compliance" and that "Example 7-2 will not work in Internet Explorer because Internet Explorer does not support the CSS2 rules that are used to make this work." And on page 187 that "Internet Explorer does not natively support :hover on elements other than . For this reason, instead of using the CSS that will work for all other browsers, we must use this...."

(It's hard not to laugh, too, at a sentence that begins with "To take the file menu example fully to the Web 2.0 level....")

By the time all the errata are corrected and a second edition issued, it might be appropriate for the author to wag his finger at developers who can't yet afford to to be totally standards-pure, but by then the faddish jargon will seem very dated.

And until O'Reilly starts employing copy editors, I'm not buying the first edition of any title they release.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.”