Ajax in Practice
- Media: Book (Paperback, 456 pages)
- ISBN: 1932394990
- Publisher: Manning Publications
- Release Date: May 30, 2007
Product Description
Ajax gives web developers the potential to create rich user-centered internet applications. But Ajax also adds a new level of complexity and sophistication to those applications. Ajax in Practice tackles Ajax head-on, providing countless hands-on techniques and tons of reusable code to address the specific issues developers face when building Ajax-driven solutions.
After a brief overview of Ajax, this book takes the reader through dozens of working examples, all presented in an easy-to-use cookbook format. Readers will learn how to implement drag-and-drop interfaces and will discover how to create effective nagigation strategies for their applications. Unlike a traditional cookbook, though, Ajax in Practice provides a thorough discussion of each technique presented and shows how the individual components can be connected to create powerful solutions. A fun "mash-up" chapter concludes the book. Throughout Ajax in Practice, the examples chosen are interesting, entertaining, and practical.
Practical Ajax Knowledge
The book is divided in two parts. The first part contains four chapters that present the basic concepts of Ajax. After an introduction, it discusses the various communications techniques like Json or XML. A chapter is then dedicated to object-oriented JavaScript, that the authors present as a must to build scalable Ajax code. Finally, the book takes a closer look at the different JavaScript libraries (Prototype, Dojo and JQuery) used for Ajax applications.
The second part presents the various practices that could be used in client-side programming and are related to Ajax, either directly or indirectly: events, data entry and validation, navigation, drag-and-drop, usability, state management. Each topic is clearly explained in a dedicated chapter. A chapter is also dedicated to integrating outside API like Yahoo! or Google maps. Finally, a last chapter is dedicated to a sample mash-up application.
Buggy code
Practical recipes for improving your Ajax programs
Ajax is Practice is kind-of the follow-up book on Ajax in Action. Ajax in Action provided the basic fundamental things to know about Ajax. Ajax in Practice goes beyond that and gives you very concrete code snippets and explanation on how to "do things". It's concrete, practical and well-written.
The book is split into 2 different parts. The first part introduces the Ajax fundamentals, Javascript, JSON, XML, XSLT and the Prototype library. The prototype library is used throughout the book. It ends with an overview of the current ajax toolkits available. The first part is 150 pages and just gives you a quick intro and gets you ready for... part 2.
The second part is the main content of the book. Every chapter contains a practical topic which you can use within your ajax application. The topics go from handling events, navigation, undo-ing to drag and drop. Chapter 12 introduces available services and then chapter 13 combines earlier things together and build a quite nice travel reporting program (something we always wanted to have...)
I thoroughly enjoyed ajax in practice. It was very concrete and useful. The knowledge in the chapters can immediately be put in practice. If you're involved with Ajax development, or even just starting, then this book is certainly recommended.
Excellent Introduction to AJAX
make this your second AJAX book
The book assumes you know basic JavaScript, CSS and HTML. If you are new to Ajax, I recommend reading a "first generation" book like "Ajax in Action" first. This book is a lot easier to follow if you have some exposure to Ajax. In particular, the problem/solution style involves learning by reading a lot of code. This is overwhelming on the first shot. I had to pull out my copy of "Ajax in Action" to follow parts of it. While some of the examples are long, they don't include unnecessary code.
I liked that the book has a common flow to it. Even though there are seven authors/contributors, the style is the same and it makes sense. I learned a lot about specific uses of Ajax along with examples/techniques of good Ajax code. This should definitely be the second Ajax book you read!





![Prototype and Scriptaculous in Action [Ajax]](http://ecx.images-amazon.com/images/I/51u%2B5Y4BSLL._SL75_.jpg)

