By Bruce W. Perry
First Edition
March 2006
Pages: 438
Series: Hacks
ISBN 10: 0-596-10169-4 |
ISBN 13: 9780596101695
![]()
![]()
![]()
![]()
(Average of 6 Customer Reviews)
Want to build next-generation web applications today? This book can show you how. A smart collection of 80 insider tips and tricks, Ajax Hacks covers the finer points of Asynchronous JavaScript and XML, or Ajax as it's known. Learn leading-edge web development tasks like how to display Weather.com data, scrape stock quotes, fetch postal codes, and much, much more.
Full Description
Ajax, the popular term for Asynchronous JavaScript and XML, is one of the most important combinations of technologies for web developers to know these days. With its rich grouping of technologies, Ajax developers can create interactive web applications with XML-based web services, using JavaScript in the browser to process the web server response.
Taking complete advantage of Ajax, however, requires something more than your typical "how-to" book. What it calls for is Ajax Hacks from O'Reilly. This valuable guide provides direct, hands-on solutions that take the mystery out of Ajax's many capabilities. Each hack represents a clever way to accomplish a specific task, saving you countless hours of searching for the right answer.
A smart collection of 80 insider tips and tricks, Ajax Hacks covers all of the technology's finer points. Want to build next-generation web applications today? This book can show you how. Among the multitude of topics addressed, it shows you techniques for:
- Using Ajax with Google Maps and Yahoo Maps
- Displaying Weather.com data
- Scraping stock quotes
- Fetching postal codes
- Building web forms with auto-complete functionality
Ajax Hacks also features a number of advanced hacks for accelerated web developers. Discover how to create huge, maintainable bookmarklets, how to use client-side storage for Ajax applications, and how to call a built-in Java object from JavaScript using Ajax. The book even addresses best practices for testing Ajax applications and improving maintenance, performance, and reliability for JavaScript code.
The latest in O"Reilly's celebrated Hacks series, Ajax Hacks smartly complements other O'Reilly titles such as Head Rush Ajax and JavaScript: The Definitive Guide.
Register your book | Submit Errata | Examples | Online demos
Browse within this book
Cover | Table of Contents | Index | Sample Hacks | Colophon
Book details
First Edition: March 2006
Series:
Hacks
ISBN: 0-596-10169-4
Pages: 438
Average Customer Reviews: ![]()
![]()
![]()
![]()
(Based on 6 Reviews)
Featured customer reviews
good theory but lacks real life cross-domain hacks, March 28 2008
would be an excellent book but lacks real life code or scenario. In the post 9/11 era no one is willing to share their resource within the organization and its a real problem for JS to go across domains while Firefox complains all the time permission denied to user browser resource.
Good theory...
help!, January 31 2008
Submitted by Avin [Respond | View]
i Added the rating system from masugadesign.com
followed all the steps but cant make the rating bar appear
Need Help from Author, August 22 2007
"Secondly, there is no where to go for help with the examples that are not running as expected. It will be great if we got all the examples running in the parkerriver website."
Think twice before you are TOO HAPPY when you see this book
I think the direction is CORRECT, giving us lots of HACKS (those just mean AJAX techniques)
but unlike other book --
CAN THEY JUST MAKE THOSE PROGRAM WORK esp with HTTPrequest to the server
the DEMO sample run GREAT, then we try it on our own PC server, then it WOULD NOT work 100%
e.g. chapter 3 first example
I could not pass my given email address for validation to the server in the PARKERRIVER.com web site, i.e. 90% of the program run as the demo, but the last bit is the hurdle
I got this message -- that is from HTTP_request.js
"The application cannot contact "+
"the server at the moment. "+
"Please try again in a few seconds.\n"+
"Error detail: "+errv.message);
}
and I C O U L D N O T figure out why it gives this message when I run it myself
hope that the author will participate in SOME FORUM and discuss his examples
if you know a forum -- please register here and tell us !! the URL
3xxx
Need Help from Author, April 27 2007
I would say the book is of excellent help. Since it involves lot of technologies there would be certain areas which might not be of interest to all.
Firstly, I am little bit dissappointed with the Java and Ruby Server side code which have just filled pages. It would have been great if we had more ajax hacks instead of them. Different editions with respect to specific server side scripts may help Oreilly to sell more books with slight modifications.
Secondly, there is no where to go for help with the examples that are not running as expected. It will be great if we got all the examples running in the parkerriver website.
Thirdly, in general there is nowhere to ask questions regarding the book. The email id provided in the book, bookquestions at oreilly dot com, is returning my mail saying its spam. I have tried to send the mail with two different ids. I place to ask for help (forum, blog, etc) will be very useful.
Hope this helps.
Nice Hacks - Where's the Server Side?, January 11 2007
I have been reading this book and find it fairly informative on Ajax, but useless. Unless I want to spend hours figuring out how to do the server side of the hack I can't use any of the ones I've read so far - I've just finished 17. Hack #7 shows how to create the JSON response on the server in a Java servlet, but that is only mildly useful.
I can see that it would be a little bit more work and a larger book to include the server side programs. And then having to decide which language to use...
I would suggest a companion series of books for the server side programming - one for each language - ASP, PHP, Perl, Java, Ruby, etc. And after the PHP one is out then I'll consider finishing Ajax Hacks.
Needs editor., November 14 2006
Submitted by PerlKnitter [Respond | View]
I'll admit I'm barely started on this. And, so far, the hacks work. But I am having troubles reading it because of minor editorial problems. Hopefully, this won't come across as whining, but considering the professionalism that you usually find in O'Reilly books, this was disappointing. So three examples and you can move on to the other glowing reviews.
First, a minor complaint about style. I am use to moving from project to project and having to adapt to a new style guide for the code. Which is fine. But this seems to be lacking any style in places. Consistent use of white space is mostly what I noticed. Not a big deal, but something that you notice when you type in the examples. Something that an editor should have caught.
Second was the naming of code snippets. Hack #4's HTML references hack3.js. So flip back to Hack #3. Hmm, no, this one is called http_request.js. Then you realize that hack3.js is in Hack #4. So, give the author the benefit of the doubt, maybe he just wanted to keep the scripts in numerical order and 3 was the next one in line. But then Hack #5 bursts that moment of optimisim by having hack9.js. Hack #6 jumps back to hack4.js. Editor, please?
Finally, there is the previously mentioned http_request.js in Hack #3. This has a couple of nice fuctions that we will be using in future hacks. Modularity is good. But then, at least for the next few hacks, it is not used. Instead you find for the sake of brevity, please see first or second hack for these functions. It seems like it would be even briefer to use the module already built for this purpose.
Buy the book. Just be prepared for a bit of disappointment if you are more detailed oriented.
Good but lacking something fundamental, October 25 2006
I find this book very good with the useful hacks but this book never discuss the server side of these hacks. The example code in the book just points to a website to retrieve information for the AJAX hacks but there is no discussion of how to build the server side components. For novices, that is very important information to know and to learn from.
Review of "Ajax Hacks", April 27 2006
If you believe in a better, faster and friendlier web, you have certainly jumped onto the Ajax bandwagon or at least considered doing it at some point. For over a year now, web evangelists have published countless articles, tutorials and books about Ajax (and by-products thereof). You have certainly bookmarked a host of websites and pages talking about this new approach to developing web applications. You also have probably piled up an ever growing stack of various items, such as frameworks, scripts, patterns, effects, that you have yet to check out and try. Given the rate at which new Ajax libraries and frameworks are born and the pace at which they mature, you find yourself wondering where to start your quest, if at all.
"Ajax Hacks" by Bruce Perry can considerably help you lift the weight off your shoulders. By means of not less than eighty hacks, Perry shows you well-chosen points of interest in the Ajax landscape whose purpose is to help you create your own unique path to the Ajax heaven. The book first shows you the basics of Ajax interactions. Then, it explains how to play around with web forms and validate user input efficiently. After demonstrating how to get advantage from using the Google and Yahoo Maps APIs, it introduces a couple frameworks and libraries, such as Rico, Prototype, script.aculo.us and DWR and explains how to take advantage of the features they provide in an efficient way. A couple hacks also detail how to handle the browser history, how to use bookmarklets, how to build client-side caches and storage system. The author also introduces the Ajax support provided by the Ruby on Rails framework, and finishes the book with a dozen hacks showing advanced uses of Ajax, such as using RSH, fixing the back button, calling web services from JavaScript, creating an autocomplete text field and much more...
Whether a novice or an expert, if you consider adopting Ajax or if you are willing to consolidate your current Ajax knowledge with new tricks, "Ajax Hacks" is definitely a book for you. Easy to read and comprehend, simple to browse, accessible to anyone... a must have!!
More book reviews and article are available here (http://radio.javaranch.com/val)
Media reviews
"Ajax is about bringing flexibility and responsiveness to websites. Ajax Hacks is a great, hands-on, introduction to what Ajax can do; for those who want to learn Ajax, the book is an excellent tutorial."
-- Major Keary, Book News
"I found many of the hacks very interesting and very applicable to what I need to do in my day-to-day work. The author is very clear in his examples and engaging in his writing. This is a very interesting book to read and is an excellent introduction to ajax. I would highly recommend it to web developers interested in learning more about this exciting technology."
-- Mike George, Amazon.com
"AJAX 'hacks' are concise code samples that can be used as 'components' (if you will,) that you can plug into your own work. Besides the usefulness of having a reusable collection like this, you can learn a lot from the 'hacks,' since each one is coupled with a good discussion. "
-- Stefan Mischook, Killersites.com
"Amid the flurry of rushed-to-print Ajax books released this past spring was O'Reilly's Ajax Hacks. While some of the initial clutch of Ajax books have been disappointing, Ajax Hacks competently accomplishes its mission, which is to show you how to implement Ajax in useful ways...I found this book very helpful."
-- Anonymous Reader, NewsForge
"...you get a variety of hacks and code that show you how to do a number of things, such as populating dropdown lists, building mash-ups, and even how to do a drag-and-drop interface without round-tripping to the server with each action. This is one of those books that you probably won't buy with a particular need in mind, but after reading through the material you'll have some ideas that you want to explore further."
-- Thomas Duff, Duffbert's Random Musings
"Ajax Hacks continues the tradition of excellent "lead by example" books from O'Reilly. It provides a clear guide to what can be accomplished with Ajax, as well as opening up the possibilities for developers to play around on their own. The best thing about these books in general is that they are very accessible and have something for all levels of developer. Whether you are well-versed in using Ajax or are new to it, you should find something useful in this book."
-- Gabriel Guzman, Amazon.com
"There is a lot of learning to do with AJAX, not only the basics but also the best way to use it to make better Internet applications...This book has both the basics and the strategies."
-- Edward Tanguay, Edward Tanguay's Web Developer Site
"...a good place to dip-in for ideas, examples and code that can be lifted and re-worked for your own projects."
-- Pan Pantziarka, The Register
"In all, as a geek, this book brought back to me the joy of the original Compute! and the Byte magazines of the 1980s...As far as web development books go, there are some that you read and give away--and there are those that you keep, and put a GPS tracker on so you can find it under the old pizza boxes when you need it. This book is the latter. It's one of the few books that is sitting next to the monitor on the desk, within reach. A true web developer knows what that means."
--Taran Rampersad, KnowProSE.com, April 2006






