Ajax Hacks

Chapter 1: Introduction

[Hack #2 Use the Request Object to POST Data to the Server]

[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]

Chapter 3: Validation

[Hack #23 Validate Email Syntax]

[Hack #24 Validate Unique User Names]

[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 #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 a Yahoo! Maps and GeoURL Mash-up with Ajax]

[Hack #34 Fetch a Postal Code]

[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 Out The Browser's Locale Information]

[Hack #42 Create an RSS Feed Reader]

Chapter 5: Direct Web Remoting (DWR) for Java Jocks

[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 9: Options and Efficiencies

[Hack #68 Fix the Browser Back Button in Ajax Applications]

[Hack #77 Build a Client-Side Cache]

[Hack #78 Create an Auto-Complete Field]

[Hack #79 Dynamically Display More Information About a Topic]