Automotive Holiday Deals Up to 50% Off Select Books Shop Men's Athletic Shoes Learn more nav_sap_SWP_6M_fly_beacon Indie for the Holidays egg_2015 All-New Amazon Fire TV Grooming Deals Gifts Under $50 Amazon Gift Card Offer bf15 bf15 bf15 $30 Off Amazon Echo $15 Off All-New Fire Kindle Black Friday Deals Outdoor Deals on DOTD

Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.

  • Apple
  • Android
  • Windows Phone
  • Android

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

  • List Price: $44.95
  • Save: $22.00 (49%)
FREE Shipping on orders over $35.
Only 5 left in stock (more on the way).
Ships from and sold by Gift-wrap available.
Ajax in Action has been added to your Cart
Condition: Used: Good
Comment: This item is gently used in good or better condition. If it is a textbook it may not have supplements. It may have some moderate wear and possibly include previous ownerâ€TMs name, some markings and/or is a former library book. We ship within 1 business day and offer no hassle returns. Big Hearted Books shares its profits with schools, churches and non-profit groups throughout New England. Thank you for your support!
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

Ajax in Action Paperback – November 3, 2005

68 customer reviews

See all 3 formats and editions Hide other formats and editions
New from Used from
Paperback, November 3, 2005
$3.95 $0.01

Take an Extra 30% Off Any Book
$22.95 FREE Shipping on orders over $35. Only 5 left in stock (more on the way). Ships from and sold by Gift-wrap available.

Frequently Bought Together

  • Ajax in Action
  • +
  • Ajax in Practice
  • +
  • Ajax: The Definitive Guide
Total price: $95.60
Buy the selected items together

Special Offers and Product Promotions

  • Take an Extra 30% Off Any Book: Use promo code HOLIDAY30 at checkout to get an extra 30% off any book for a limited time. Excludes Kindle eBooks and Audible Audiobooks. Restrictions apply. Learn more | Shop now

Editorial Reviews


"A tremendously useful field guide specifically written for developers down in the trenches...waiting for the killer solution..." -- Val's Blog

From the Inside Flap

Preface Sometimes your destiny will follow you around for years before you notice it. Amidst the medley of fascinating new technologies that I was playing—I mean working—with in the early 1990s was a stunted little scripting language called JavaScript. I soon realized that, despite its name, it didn’t really have anything to do with my beloved Java, but it persistently dogged my every step.

By the late 90s, I had decided to cut my hair and get a proper job, and found myself working with the early adopters of digital set-top box technology. The user interface for this substantial piece of software was written entirely in JavaScript and I found myself the technical lead of a small team of developers writing window-management code, schedulers, and all kinds of clever stuff in this language. "How curious," I thought. "It’ll never catch on."

With time I moved on to more demanding work, developing the enterprise messaging backbone and various user interface components for an "intelligent," talking "House of the Future." I was hired for my Java skills, but I was soon writing fancy JavaScript user interfaces again. It was astonishing to find that some people were now taking this scripting language seriously enough to write frameworks for it. I quickly picked up the early versions of Mike Foster’s x library (which you’ll find put into occasional action in this book). One afternoon, while working on an email and text message bulletin board, I had the weird, exciting idea of checking for new messages in a hidden frame and adding them to the user interface without refreshing the screen. After a few hours of frenzied hacking, I had it working, and I’d even figured out how to render the new messages in color to make them noticeable to the user. "What a laugh," I thought, and turned back to some serious code. Meantime, unbeknownst to me, Eric Costello, Erik Hatcher, Brent Ashley, and others were thinking along similar lines, and Microsoft was cooking up the XMLHttpRequest for its Outlook Web Access.

Destiny was sniffing at my heels. My next job landed me in a heavy-duty development role, building software for big Tier 1 banks. We use a mixture of Java and JavaScript and employ tricks with hidden frames and other things. My team currently looks after more than 1.5 million bytes of such code—that’s static JavaScript, in addition to code we generate from JSPs. No, I’m not counting any image resources in there either. We use it to develop applications for hundreds of operators managing millions of dollars’ worth of accounts. Your bank account may well be managed by this software.

Somewhere along the way, JavaScript had grown up without my quite realizing it. In February 2005, Jesse James Garrett provided the missing piece of the jigsaw puzzle. He gave a short, snappy name to the cross-browser-asynchronous-rich-client-dynamic-HTML-client-server technology that had been sneaking up on us all for the last few years: Ajax.

And the rest, as they say, is history. Ajax is generating a lot of interest now, and a lot of good code is getting written by the people behind Prototype, Rico, Dojo, qooxdoo, Sarissa, and numerous other frameworks, too plentiful to count. Actually, we do try to count them, in appendix C. We think we’ve rounded up most of the suspects. And I’ve never had so much fun playing—I mean working—with computers.

We have not arrived yet. The field is still evolving. I was amazed to see just how much when I did the final edits in September on the first chapter that I wrote back in May! There’s still a lot of thinking to be done on this subject, and the next year or two will be exciting. I’ve been very lucky to have Eric and Darren on the book piece of the journey with me so far.

We hope you will join us—and enjoy the ride.

Dave Crane


Hero Quick Promo
Holiday Deals in Kindle Books
Save up to 85% on more than 1,000 Kindle Books. These deals are valid until November 30, 2015. Learn more

Product Details

  • Paperback: 680 pages
  • Publisher: Manning Publications; 1 edition (November 3, 2005)
  • Language: English
  • ISBN-10: 1932394613
  • ISBN-13: 978-1932394610
  • Product Dimensions: 7.5 x 1.4 x 9 inches
  • Shipping Weight: 2.5 pounds (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (68 customer reviews)
  • Amazon Best Sellers Rank: #578,227 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews

113 of 125 people found the following review helpful By Amazon Customer on November 16, 2005
Format: Paperback
Let me first preface this review by saying this is the first technical book that I've read cover to cover TWICE prior to posting a review. I had to make sure the stuff stuck, because the material covered in Manning's very excellent "Ajax in Action" is really deep. But bringing the next evolution of user experience, giving your web applications a rich client feel, isn't completely easy. This won't scare you away from using Ajax in your existing applications, but make you aware of exactly what to expect.

The book first starts out by presenting a healthy discussion of the key components of remote scripting - CSS, the DOM, JavaScript's XmlHttpRequest object and client callbacks - and how they interact within the scope of your project. Before diving into full-on Ajax development, authors Dave Crane and Eric Pascarello discuss the need for object-oriented JavaScript programing, which will be foreign and awkward to most developers, even those coming from procedural backgrounds like Java and C++. The authors familiarize you with the various ways of composing the unconventional constructs available (JSON-RPC, prototypes) for optimizing remote scripting.

Best practices are encouraged throughout the chapters and enforced in all code snippets. The use of patterns like Observer, Command and MVC and refactoring and module-based programming (mainly .NET assemblies and Java servlets) permeate the entire work. The actual meat of the book doesn't get started until Chapter 9, which the authors clearly state, dealing with the aforementioned discussion of raw JavaScript programming that'll be completely new to most people. But for those not wanting to engage in the massive task of writing syntax by hand, the major libraries available are thankfully referenced.
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
56 of 62 people found the following review helpful By Ernest Friedman-Hill VINE VOICE on October 27, 2005
Format: Paperback
Ajax is a Web programming technique that lets you develop rich, dynamic, interactive interfaces using nothing but JavaScript, HTML and CSS on the desktop. It's changing the landscape of the Web, and this book will help you gear up to be part of the revolution. Renaissance men David Crane and Eric Pascarello show you how to weave together the many pieces that make up an Ajax application: JavaScript, server-side components, HTML, CSS, and XML. More importantly, they teach you the tools and techniques you'll need to develop industrial-strength applications using JavaScript, a language that doesn't always get as much respect as it deserves.

This is really two books in one: first, it's a look at the Ajax technologies and prescriptions for their effective use. There are detailed discussions of relevant design patterns and of strategies for designing usable and secure applications. There are substantial discussions of a number of Ajax frameworks, libraries, and development tools, as well as developer features of Web browsers that you've probably never learned about but can't live without.

The second half of the book is a cookbook, a compendium of detailed blueprints for concocting your own versions of a trifecta of Ajax showcases: dynamic double combo boxes, typeahead select boxes, and Web portals with selectable, draggable portlets. There are even recipes for assembling standalone Ajax applications that use existing third-party Web services as a back-end. I liked that the cookbook built on the earlier parts of the book by deliberately applying the design patterns and refactoring techniques therein described.

If you're serious about helping to revolutionize the Web, you need this book.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
18 of 18 people found the following review helpful By Jeanne Boyarsky on November 9, 2005
Format: Paperback
"Ajax in Action" is not only an excellent book on Ajax, but the best JavaScript book I have ever read. The authors note early on that Ajax is a process, not a technology. This theme permeates the book. There is an emphasis on requirements, design, implementation, testing and maintenance. So the book shows how to do a real project, not just how to code.

Keeping with the real project theme, there is information throughout on refactoring and design patterns. The authors present low level coding idioms as well. All this creates a language for coding Ajax applications. The second half of the book walks you through the entire development process for five sample applications.

The book targets a wide audience range, from enterprise developers to self-taught scripters. Basic concepts are explained concisely for newcomers and experienced developers may skim certain sections. However these sections are a very small part of the 600+ page book.

An appendix covers an introduction to JavaScript. While you would want to supplement it with materials from the web, it clearly covers the advanced topics that are hard to find elsewhere. There are also introductions and tips on CSS and DOM. In short, I learned a ton about non-Ajax development and page manipulations too.

And the book even has a screenshot of JavaRanch! I was expecting a good book when I saw Bear and Ernest's comments on the back. But it still managed to exceed my expections!
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
18 of 19 people found the following review helpful By Amazon Customer on October 31, 2005
Format: Paperback
Huh? Kind of a weird title! What I mean by it though is that this is an excellent book that covers so many things that even if you aren't especially interested in Ajax but are interested in client-side coding, this book would be a valuable addition to your bookshelf.

There is a good bit of "professional" Javascript coding here... Javascript, and client-side coding in general, has historically had a bad rap against it because it's so easy to throw together a ton of spaghetti code that is difficult to debug, extend and maintain. This book will show you how to avoid those pitfalls.

Things like properly applying patterns, implenting clean separation of concerns, advanced debugging techniques and reusing all the good OOP techniques you use on the back-end are covered very well.

Of course, Ajax is covered fantastically well too... while I would say this isn't a book for beginners (it dives in almost immediately with some code that would probably spin a beginners' head), if you already have a good grasp of Javascript, HTTP and web development in general then this will be the absolute perfect introduction to Ajax. The book starts by giving a solid description of what Ajax is, and more importantly, why it can represent such a paradigm shift for so many people.

From there they dive into the theory behind it, how it works, how it differs from what you probably have done before, and also how to do the same thing without Ajax.

After that it's example city! Plenty of demonstrations of the techniques being talked about, and all the while they continue to explain it from a theoretical standpoint too so that you not only can copy the code as-is and use it, you understand why it is done how it is, so you can apply that knowledge on your own later.
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Most Recent Customer Reviews

Set up an Amazon Giveaway

Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
Ajax in Action
This item: Ajax in Action
Price: $22.95
Ships from and sold by

What Other Items Do Customers Buy After Viewing This Item?