Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
   
More Buying Choices
52 used & new from $2.92

Have one to sell? Sell yours here
 
   
Ajax Hacks: Tips & Tools for Creating Responsive Web Sites
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

Ajax Hacks: Tips & Tools for Creating Responsive Web Sites (Paperback)

by Bruce Perry (Author)
Key Phrases: main page, selection list, send cookie values, Web Forms, Ajax Basics, Server Without (more...)
3.6 out of 5 stars See all reviews (15 customer reviews)

List Price: $29.99
Price: $21.89 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $8.10 (27%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Monday, July 13? Choose One-Day Shipping at checkout. Details
28 new from $9.89 24 used from $2.92
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Best Value

Buy Ajax: The Definitive Guide and get Ajax Hacks: Tips & Tools for Creating Responsive Web Sites at an additional 5% off Amazon.com's everyday low price.

Ajax: The Definitive Guide + Ajax Hacks: Tips & Tools for Creating Responsive Web Sites
Buy Together Today: $52.29

Show availability and shipping details

  • Ajax: The Definitive Guide

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • This item: Ajax Hacks: Tips & Tools for Creating Responsive Web Sites

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Ajax: The Definitive Guide

Ajax: The Definitive Guide

by Anthony T. Holdener III
4.5 out of 5 stars (8)  $31.49
Ajax Design Patterns

Ajax Design Patterns

by Michael Mahemoff
4.2 out of 5 stars (14)  $29.69
Head Rush Ajax (Head First)

Head Rush Ajax (Head First)

by Brett McLaughlin
3.6 out of 5 stars (56)  $26.39
Professional Ajax, 2nd Edition (Programmer to Programmer)

Professional Ajax, 2nd Edition (Programmer to Programmer)

by Nicholas C. Zakas
4.2 out of 5 stars (20)  $5.03
Foundations of Ajax

Foundations of Ajax

by Ryan Asleson
4.1 out of 5 stars (33)  $39.99
Explore similar items

Editorial Reviews

Product 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.



About the Author
Bruce Perry is an independent Java software developer and writer. Since 1996, he has developed web applications and databases for various nonprofits, design and marketing firms, and ad agencies. When not hacking or writing, he loves cycling and climbing mountains in the U.S. and Switzerland. He lives in Massachusetts with his wife Stacy LeBaron, daughter Rachel, and son Scott.

Product Details

  • Paperback: 438 pages
  • Publisher: O'Reilly Media, Inc.; illustrated edition edition (March 21, 2006)
  • Language: English
  • ISBN-10: 0596101694
  • ISBN-13: 978-0596101695
  • Product Dimensions: 8.9 x 6 x 1.2 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 3.6 out of 5 stars See all reviews (15 customer reviews)
  • Amazon.com Sales Rank: #537,244 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #77 in  Books > Computers & Internet > Programming > Languages & Tools > XHTML

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?

Ajax Hacks: Tips & Tools for Creating Responsive Web Sites
65% buy the item featured on this page:
Ajax Hacks: Tips & Tools for Creating Responsive Web Sites 3.6 out of 5 stars (15)
$21.89
Ajax: The Definitive Guide
17% buy
Ajax: The Definitive Guide 4.5 out of 5 stars (8)
$31.49
Ajax Design Patterns
8% buy
Ajax Design Patterns 4.2 out of 5 stars (14)
$29.69
Ajax Patterns and Best Practices (Expert's Voice)
5% buy
Ajax Patterns and Best Practices (Expert's Voice) 3.8 out of 5 stars (17)
$26.18

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(9)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

15 Reviews
5 star:
 (4)
4 star:
 (6)
3 star:
 (2)
2 star:
 (1)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
3.6 out of 5 stars (15 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
31 of 35 people found the following review helpful:
4.0 out of 5 stars Good as a supplemental book on Ajax, April 11, 2006
By calvinnme "Texan refugee" (Fredericksburg, Va) - See all my reviews
(TOP 10 REVIEWER)      
It's too bad this book came out ahead of "Head Rush Ajax", because after reading that book, this book seems much better. It is not meant to be a tutorial on Ajax, but just a supplemental text full of possibly helpful code. There are detailed descriptions of each hack, but I think you'll be lost if you don't already know XML, Javascript, and DOM pretty well.
To me, the most useful hacks were in Chapter 4, where there are hacks that explore the Google Maps, Yahoo! Maps, and GeoURL APIs, and combine them, and also where you learn to use cookies in the Ajax environment. I also liked reading chapter 8 on script.aculo.us, and learning about how easily visual effects could be incorporated into Ajax applications. If you are not sure this book is for you, all of the code examples are available in a zipfile at the book's webpage on the publisher's site. I recommend you read "Head Rush Ajax" first, then come back to this book for some interesting extras. I notice that Amazon does not list the table of contents, so I do that here:
Chapter 1. Ajax Basics
Hack 1. Detect Browser Compatibility with the Request Object
Hack 2. Use the Request Object to POST Data to the Server
Hack 3. Use Your Own Library for XMLHttpRequest
Hack 4. Receive Data as XML
Hack 5. Get Plain Old Strings
Hack 6. Receive Data as a Number
Hack 7. Receive Data in JSON Format
Hack 8. Handle Request Object Errors
Hack 9. Dig into the HTTP Response
Hack 10. Generate a Styled Message with a CSS File
Hack 11. Generate a Styled User Message on the Fly
Chapter 2. Web Forms
Hack 12. Submit Text Field or textarea Values to the Server Without a Browser Refresh
Hack 13. Display Text Field or textarea Values Using Server Data
Hack 14. Submit Selection-List Values to the Server Without a Round Trip
Hack 15. Dynamically Generate a New Selection List Using Server Data
Hack 16. Extend an Existing Selection List
Hack 17. Submit Checkbox Values to the Server Without a Round Trip
Hack 18. Dynamically Generate a New Checkbox Group with Server Data
Hack 19. Populate an Existing Checkbox Group from the Server
Hack 20. Change Unordered Lists Using an HTTP Response
Hack 21. Submit Hidden Tag Values to a Server Component
Chapter 3. Validation
Hack 22. Validate a Text Field or textarea for Blank Fields
Hack 23. Validate Email Syntax
Hack 24. Validate Unique Usernames
Hack 25. Validate Credit Card Numbers
Hack 26. Validate Credit Card Security Codes
Hack 27. Validate a Postal Code
Chapter 4. Power Hacks for Web Developers
Hack 28. Get Access to the Google Maps API
Hack 29. Use the Google Maps API Request Object
Hack 30. Use Ajax with a Google Maps and Yahoo! Maps Mash-up
Hack 31. Display a Weather.com XML Data Feed
Hack 32. Use Ajax with a Yahoo! Maps and GeoURL Mash-up
Hack 33. Debug Ajax-Generated Tags in Firefox
Hack 34. Fetch a Postal Code
Hack 35. Create Large, Maintainable Bookmarklets
Hack 36. Use Permanent Client-Side Storage for Ajax Applications
Hack 37. Control Browser History with iframes
Hack 38. Send Cookie Values to a Server Program
Hack 39. Use XMLHttpRequest to Scrape an Energy Price from a Web Page
Hack 40. Send an Email with XMLHttpRequest
Hack 41. Find the Browser's Locale Information
Hack 42. Create an RSS Feed Reader
Chapter 5. Direct Web Remoting (DWR)for Java Jocks
Hack 43. Integrate DWR into Your Java Web Application
Hack 44. Use DWR to Populate a Selection List from a Java Array
Hack 45. Use DWR to Create a Selection List from a Java Map
Hack 46. Display the Keys/Values from a Java HashMap on a Web Page
Hack 47. Use DWR to Populate an Ordered List from a Java Array
Hack 48. Access a Custom Java Object with JavaScript
Hack 49. Call a Built-in Java Object from JavaScript Using DWR
Chapter 6. Hack Ajax with the Prototype and Rico Libraries
Hack 50. Use Prototype's Ajax Tools with Your Application
Hack 51. Update an HTML Element's Content from the Server
Hack 52. Create Observers for Web Page Fields
Hack 53. Use Rico to Update Several Elements with One Ajax Response
Hack 54. Create a Drag-and-Drop Bookstore
Chapter 7. Work with Ajax and Ruby on Rails
Hack 55. Install Ruby on Rails
Hack 56. Monitor Remote Calls with Rails
Hack 57. Make Your JavaScript Available to Rails Applications
Hack 58. Dynamically Generate a Selection List in a Rails Template
Hack 59. Find Out Whether Ajax Is Calling in the Request
Hack 60. Dynamically Generate a Selection List Using Database Data
Hack 61. Periodically Make a Remote Call
Hack 62. Dynamically View Request Information for XMLHttpRequest
Chapter 8. Savor the script.aculo.us JavaScript Library
Hack 63. Integrate script.aculo.us Visual Effects with an Ajax Application
Hack 64. Create a Login Box That Shrugs Off Invalid Logins
Hack 65. Create an Auto-Complete Field with script.aculo.us
Hack 66. Create an In-Place Editor Field
Hack 67. Create a Web Form That Disappears When Submitted
Chapter 9. Options and Efficiencies
Hack 68. Fix the Browser Back Button in Ajax Applications
Hack 69. Handle Bookmarks and Back Buttons with RSH
Hack 70. Set a Time Limit for the HTTP Request
Hack 71. Improve Maintainability, Performance, and Reliability for Large JavaScript Applications
Hack 72. Obfuscate JavaScript and Ajax Code
Hack 73. Use a Dynamic script Tag to Make Web Services Requests
Hack 74. Configure Apache to Deal with Cross-Domain Issues
Hack 75. Run a Search Engine Inside Your Browser
Hack 76. Use Declarative Markup Instead of Script via XForms
Hack 77. Build a Client-Side Cache
Hack 78. Create an Auto-Complete Field
Hack 79. Dynamically Display More Information About a Topic
Hack 80. Use Strings and Arrays to Dynamically Generate HTML
Index
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
25 of 31 people found the following review helpful:
2.0 out of 5 stars The Last Book I'd Recommend on AJAX, June 3, 2006
By Raymond Brigleb (Portland, OR, United States) - See all my reviews
(REAL NAME)   
A lot of O'Reilly books of late seem rushed, intended to fill a sudden small vacancy in the marketplace. This is one such book. It seems not well proofed, the code samples are often big blobs of text with no indentation or concern for formatting, and the content seems rushed and poorly considered.

For example, the Ruby on Rails coverage is really slim, and the code looks like it was written a year ago. There's not a single example using RJS templates, the current standard way of writing AJAX in Rails. The Scriptaculous examples are already out of date (for example, the chapter on in-place editing is totally irrelevant - Rails has a means to do this in a single line of code by now) and the content is quite spare.

If you need a book on Ajax, look for the Manning or Pragmatic Programmer books. All the other ones are quite poor, especially this one. I usually really like O'Reilly's work, but lately it's gotten watered-down. Skip this book and save your money for something better.
Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)



 
11 of 15 people found the following review helpful:
3.0 out of 5 stars Ajax "Hacks" -- an accurate title, April 10, 2006
I'm not sure I could have made it through this book if I hadn't already read "Ajax Patterns", but I did and I found this book useful and informative. There are a pile of things that I am using for code I'm writing now.

These are hacks -- in the most prejorative sense of the word. God-awful code that does really cool stuff. All you have to do is figure out what the code is doing and you can write good code that does the same thing, better.

You've heard of "information hiding"? Where code tells you what it's going to do, just not how it's going to do it? They use "interface hiding" -- where the code DOESN'T tell what it's going to do, it just does it behind your back. For example, they have a normal looking tag: [INPUT id="ck_nm] (those are supposed to be angle brackets!) and in a completely unrelated section of JS code they add an onClick attribute. If somebody decided to rename the tag, they'd never know why it stopped working.

But in the book it's all together, they do a reasonable job of explaining it, and it does do cool things. So, take their ideas, write some clean code that implements them and be happy!

-Bil

(I'm sorry I'm so critical, but their code really is nasty, inefficent, tightly coupled, and impossible to debug.)
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars A good supplement to Ajax!
The title of the book implies that it is a supplement by the use of the word "Hacks" and should be rated as such. Read more
Published 9 months ago by James Kirkup

3.0 out of 5 stars Broad Coverage Of AJAX
I found the spectrum of AJAX coverage very broad. If you are interested in finding out a little about a lot of areas of AJAX this book is alright. Read more
Published 18 months ago by Michael L. Griffin

1.0 out of 5 stars Not impressed
O'Reilly offers some excellent books. This is not one of them.

Every example I looked at seemed ... not a good example of how to use Javascript. Read more
Published on February 14, 2007 by Preston L. Bannister

5.0 out of 5 stars Wonderful AJAX Companion Book
AJAX Hacks by Bruce Perry is a wonderful companion book for any and all AJAX programmers. AJAX has revolutionized the web programming world, enabling developers to write web... Read more
Published on October 3, 2006 by Daniel McKinnon

5.0 out of 5 stars CLEANING UP WITH AJAX!!
Do you want to add extra interactivity to your web site? If you do, then this book is for you! Author Bruce Perry, has done an outstanding job of writing a book that collects not... Read more
Published on September 16, 2006 by John R. Vacca

4.0 out of 5 stars Once you have the basics down...
Once you have the basics of Ajax down, you might be looking for some ideas of how to apply it to your own applications. Ajax Hacks by Bruce W. Read more
Published on July 10, 2006 by Thomas Duff

5.0 out of 5 stars excellent ajax book
This is an excellent ajax book. Be sure you know javascript, xml, and css before you start reading the book. It's not for the beginner. Read more
Published on June 11, 2006 by John Sheh

4.0 out of 5 stars Lots of great tips and techniques...
If you're already pretty comfortable with JavaScript and had possibly even done some "Ajax" development before it was coined "Ajax", this book would be a great addition to your... Read more
Published on May 20, 2006 by E. Wuehler

4.0 out of 5 stars Good, usefull
Hello,

I have this Ajax book and other one too. This book is fine, and the examples mainly worked in my system (with Firefox browser, but I have not checked all... Read more
Published on April 29, 2006 by Carles Pina Estany

4.0 out of 5 stars Great introduction to Ajax
Ajax is wicked cool. If you're not sure what it is, it stands for Asynchronous Javascript And Xml, and allows you to pull data from a webserver, and refresh part of your web page... Read more
Published on April 21, 2006 by ueberhund

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   


Product Information from the Amapedia Community

Beta (What's this?)


So You'd Like to...


Look for Similar Items by Category


Free Songs, Cheap Albums
Special MP3 Deals
Visit our Special Deals Store to find ultra-low prices on great albums, daily deals, and over 500 free songs.

Shop now

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Keep the Computer Running

Shop for Surge Protectors
Protect your laptop from power surges and voltage spikes with a surge protector.

Shop all surge protectors

 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Glenn Beck's Common Sense
Glenn Beck's Common Sense
Darkfever
Darkfever by Karen Marie Moning
The Adventures of Sherlock Holmes
The Adventures of Sherlock Holmes by Arthur Conan, Sir, 1859-1930 Doyle

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates