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
Download : Ajax Hacks OR Book's Store passunlock: laptrinhcoban
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
|