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.
-
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:
-
- Ebook
- Safari Books Online
- Print Release:
- March 2006
- Ebook Release:
- 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
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.
