Publisher: O'Reilly Media Released: March 2006 Pages: 448
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. |
-
Chapter 1 Ajax Basics -
It’s Not a Floor Wax -
Handle with Care -
XMLHttpRequest -
Detect Browser Compatibility with the Request Object -
Use the Request Object to POST Data to the Server -
Use Your Own Library for XMLHttpRequest -
Receive Data as XML -
Get Plain Old Strings -
Receive Data as a Number -
Receive Data in JSON Format -
Handle Request Object Errors -
Dig into the HTTP Response -
Generate a Styled Message with a CSS File -
Generate a Styled User Message on the Fly -
Chapter 2 Web Forms -
Submit Text Field or textarea Values to the Server Without a Browser Refresh -
Display Text Field or textarea Values Using Server Data -
Submit Selection-List Values to the Server Without a Round Trip -
Dynamically Generate a New Selection List Using Server Data -
Extend an Existing Selection List -
Submit Checkbox Values to the Server Without a Round Trip -
Dynamically Generate a New Checkbox Group with Server Data -
Populate an Existing Checkbox Group from the Server -
Change Unordered Lists Using an HTTP Response -
Submit Hidden Tag Values to a Server Component -
Chapter 3 Validation -
Validate a Text Field or textarea for Blank Fields -
Validate Email Syntax -
Validate Unique Usernames -
Validate Credit Card Numbers -
Validate Credit Card Security Codes -
Validate a Postal Code -
Chapter 4 Power Hacks for Web Developers -
Get Access to the Google Maps API -
Use the Google Maps API Request Object -
Use Ajax with a Google Maps and Yahoo! Maps Mash-up -
Display a Weather.com XML Data Feed -
Use Ajax with a Yahoo! Maps and GeoURL Mash-up -
Debug Ajax-Generated Tags in Firefox -
Fetch a Postal Code -
Create Large, Maintainable Bookmarklets -
Use Permanent Client-Side Storage for Ajax Applications -
Control Browser History with iframes -
Send Cookie Values to a Server Program -
Use XMLHttpRequest to Scrape an Energy Price from a Web Page -
Send an Email with XMLHttpRequest -
Find the Browser’s Locale Information -
Create an RSS Feed Reader -
Chapter 5 Direct Web Remoting (DWR)for Java Jocks -
Integrate DWR into Your Java Web Application -
Use DWR to Populate a Selection List from a Java Array -
Use DWR to Create a Selection List from a Java Map -
Display the Keys/Values from a Java HashMap on a Web Page -
Use DWR to Populate an Ordered List from a Java Array -
Access a Custom Java Object with JavaScript -
Call a Built-in Java Object from JavaScript Using DWR -
Chapter 6 Hack Ajax with the Prototype and Rico Libraries -
Use Prototype’s Ajax Tools with Your Application -
Update an HTML Element’s Content from the Server -
Create Observers for Web Page Fields -
Use Rico to Update Several Elements with One Ajax Response -
Create a Drag-and-Drop Bookstore -
Chapter 7 Work with Ajax and Ruby on Rails -
Sensible MVC -
Install Ruby on Rails -
Monitor Remote Calls with Rails -
Make Your JavaScript Available to Rails Applications -
Dynamically Generate a Selection List in a Rails Template -
Find Out Whether Ajax Is Calling in the Request -
Dynamically Generate a Selection List Using Database Data -
Periodically Make a Remote Call -
Dynamically View Request Information for XMLHttpRequest -
Chapter 8 Savor the script.aculo.us JavaScript Library -
Integrate script.aculo.us Visual Effects with an Ajax Application -
Create a Login Box That Shrugs Off Invalid Logins -
Create an Auto-Complete Field with script.aculo.us -
Create an In-Place Editor Field -
Create a Web Form That Disappears When Submitted -
Chapter 9 Options and Efficiencies -
Fix the Browser Back Button in Ajax Applications -
Handle Bookmarks and Back Buttons with RSH -
Set a Time Limit for the HTTP Request -
Improve Maintainability, Performance, and Reliability for Large JavaScript Applications -
Obfuscate JavaScript and Ajax Code -
Use a Dynamic script Tag to Make Web Services Requests -
Configure Apache to Deal with Cross-Domain Issues -
Run a Search Engine Inside Your Browser -
Use Declarative Markup Instead of Script via XForms -
Build a Client-Side Cache -
Create an Auto-Complete Field -
Dynamically Display More Information About a Topic -
Use Strings and Arrays to Dynamically Generate HTML |
- Title:
- Ajax Hacks
- By:
- Bruce W. Perry
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- March 2006
- Ebook:
- February 2009
- Pages:
- 448
- Print ISBN:
- 978-0-596-10169-5
- | ISBN 10:
- 0-596-10169-4
- Ebook ISBN:
- 978-0-596-10594-5
- | ISBN 10:
- 0-596-10594-0
|
-
Bruce W. Perry 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. View Bruce W. Perry's full profile page. |
Colophon The image on the cover of Ajax Hacks is ping pong paddles. Ping pong originated in Victorian England, played in the homes of the upper class, who would use everyday household objects to create an indoor tennis "court." A row of books, for instance, would serve as a net, the top of a champagne cork as a ball, and cigar box tops as paddles. Looking to capitalize on the popularity of this "table tennis" game, manufacturers began selling small paddles constructed of wooden frames and parchment paper. The sound that this early equipment made gave table tennis the name ping pong, which was first trademarked in 1901. More innovations came in the early 1900s, when players began using the modern equipment of celluloid balls and wooden paddles covered in stippled rubber. Around the same time, organized tournaments began to spring up around England, and soon after that, the game spread throughout the world. Ping pong was introduced as an Olympic game in 1988. The incredible speed and accuracy of modern players made the game difficult to follow on television. In an effort to make the game more watchable, in 2000, the International Table Tennis Association slowed down ping pong by introducing larger balls and shortened the length of the games by decreasing the winning score from 21 to 11. The cover image is taken from http://www.gettyimages.com . The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Helvetica Neue Condensed; and the code font is LucasFont's TheSans Mono Condensed. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Jonathan Zdziarski
October 2008
Ebook: $31.99
Print & Ebook: $43.99
Print: $39.99
By Andreas Spillner, Tilo Linz, Thomas Rossner, Mario Winter
August 2007
By Jeff Webb
September 2007
Ebook: $31.99
Print & Ebook: $43.99
Print: $39.99
|
Customer Reviews
By disgusted by this book from sf 2/11/2009 (2 of 2 customers found this review helpful) 4.0Good job although a little bit careless By Kodulis from Undisclosed 3/28/2008 3.0good theory but lacks real life cross-domain hacks 8/22/2007 (1 of 1 customers found this review helpful) By Anonymous from Undisclosed By pannet1 from Undisclosed 1/11/2007 (0 of 1 customers found this review helpful) 2.0Nice Hacks - Where's the Server Side? By Charlene from Undisclosed 10/25/2006 3.0Good but lacking something fundamental 4/27/2006 (0 of 1 customers found this review helpful) 5.0Review of Ajax Hacks""
|
|
|
Merchant response: Thank you for reviewing "Ajax Hacks." I'm sorry that the book was a disappointment and that the hacks didn't work.
I want to let you know that we have a 100% satisfaction guarantee, so if you would like a refund, you can find the details at http://oreilly.com/oreilly/cs/guarantee.html.
Regards,
Rachel