Ajax Hacks

Ajax Hacks

3.15 (44 ratings by Goodreads)
By (author) 

Free delivery worldwide

Available. Dispatched from the UK in 2 business days
When will my order arrive?


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 100 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; and 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".show more

Product details

  • Paperback | 304 pages
  • 152.4 x 226.1 x 30.5mm | 589.68g
  • O'Reilly Media, Inc, USA
  • Sebastopol, United States
  • English
  • w. figs.
  • 0596101694
  • 9780596101695
  • 2,054,780

About Bruce W. Perry

Bruce W. Perry is an independent software developer and writer, and the author of O'Reilly's Java Servlet & JSP Cookbook. Since 1996, he has developed web applications and databases for various nonprofits, design and marketing firms, as well as publishers. In his spare time, Perry is an active age-group triathlete and has cycled extensively in the Swiss Alps. He lives in the Newburyport, Massachusetts area with his wife Stacy LeBaron, daughter Rachel, and son Scott.show more

Table of contents

Foreword CreditsPreface Chapter 1. Ajax Basics 1. Detect Browser Compatibility with the Request Object 2. Use the Request Object to POST Data to the Server 3. Use Your Own Library for XMLHttpRequest 4. Receive Data as XML 5. Get Plain Old String s6. Receive Data as a Number 7. Receive Data in JSON Format 8. Handle Request Object Errors 9. Dig into the HTTP Response 10. Generate a Styled Message with a CSS File 11. Generate a Styled User Message on the FlyChapter 2. Web Forms 12. Submit Text Field or textarea Values to the ServerWithout a Browser Refresh 13. Display Text Field or textarea Values Using ServerData 14. Submit Selection-List Values to the Server Without a Round Trip 15. Dynamically Generate a New Selection List Using Server Data 16. Extend an Existing Selection List 17. Submit Checkbox Values to the Server Without a Round Trip 18. Dynamically Generate a New Checkbox Group with Server Data 19. Populate an Existing Checkbox Group from the Server 20. Change Unordered Lists Using an HTTP Response 21. Submit Hidden Tag Values to a Server Component Chapter 3. Validation 22. Validate a Text Field or textarea for Blank Fields 23. Validate Email Syntax 24. Validate Unique Usernames 25. Validate Credit Card Numbers 26. Validate Credit Card Security Codes 27. Validate a Postal CodeChapter 4. Power Hacks for Web Developers 28. Get Access to the Google Maps API 29. Use the Google Maps API Request Object 30. Use Ajax with a Google Maps and Yahoo! Maps Mash-up 31. Display a Weather.com XML Data Feed 32. Use Ajax with a Yahoo! Maps and GeoURL Mash-up 33. Debug Ajax-Generated Tags in Firefox 34. Fetch a Postal Code 35. Create Large, Maintainable Bookmarklets 36. Use Permanent Client-Side Storage for Ajax Applications 37. Control Browser History with iframes 38. Send Cookie Values to a Server Program 39. Use XMLHttpRequest to Scrape an EnergyPrice from a Web Page 40. Send an Email with XMLHttpRequest 41. Find the Browser's Locale Information 42. Create an RSS Feed Reader Chapter 5. Direct Web Remoting (DWR) for Java Jocks 43. Integrate DWR into Your Java Web Application44. Use DWR to Populate a Selection List from a Java Array45. Use DWR to Create a Selection List from a Java Map 46. Display the Keys/Values from a Java HashMap on a Web Page 47. Use DWR to Populate an Ordered List from a Java Array 48. Access a Custom Java Object with JavaScript 49. Call a Built-in Java Object from JavaScript Using DWRChapter 6. Hack Ajax with the Prototype and Rico Libraries 50. Use Prototype's Ajax Tools with Your Application 51. Update an HTML Element's Content from the Server 52. Create Observers for Web Page Fields 53. Use Rico to Update Several Elements with One Ajax Response 54. Create a Drag-and-Drop BookstoreChapter 7. Work with Ajax and Ruby on Rails 55. Install Ruby on Rails 56. Monitor Remote Calls with Rails 57. Make Your JavaScript Available to Rails Applications 58. Dynamically Generate a Selection List in a Rails Template 59. Find Out Whether Ajax Is Calling in the Request 60. Dynamically Generate a Selection List Using Database Data 61. Periodically Make a Remote Call 62. Dynamically View Request Information for XMLHttpRequestChapter 8. Savor the script.aculo.us JavaScript Library 63. Integrate script.aculo.us Visual Effects with an Ajax Application 64. Create a Login Box That Shrugs Off Invalid Logins 65. Create an Auto-Complete Field with script.aculo.us 66. Create an In-Place Editor Field 67. Create a Web Form That Disappears When SubmittedChapter 9. Options and Efficiencies 68. Fix the Browser Back Button in Ajax Applications 69. Handle Bookmarks and Back Buttons with RSH 70. Set a Time Limit for the HTTP Requestshow more

Rating details

44 ratings
3.15 out of 5 stars
5 5% (2)
4 32% (14)
3 45% (20)
2 11% (5)
1 7% (3)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X