Topic: Web

Professional Ajax (0471777781) cover image

Professional Ajax

Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett
ISBN: 978-0-471-77778-6
Paperback
432 pages
February 2006
This title is out-of-print and not currently available for purchase from this site.
About This Title  |  Download Code  |  Errata  |  P2P Forum for This Title
Acknowledgments.

Introduction.

Chapter 1: What Is Ajax?

Ajax Is Born.

The Evolution of the Web.

JavaScript.

Frames.

The Hidden Frame Technique.

Dynamic HTML and the DOM.

Iframes.

XMLHttp.

The Real Ajax.

Ajax Principles.

Technologies Behind Ajax.

Who Is Using Ajax?

Google Suggest.

Gmail.

Google Maps.

A9.

Yahoo! News.

Bitflux Blog.

Confusion and Controversy.

Summary.

Chapter 2: Ajax Basics.

HTTP Primer.

HTTP Requests.

HTTP Responses.

Ajax Communication Techniques.

The Hidden Frame Technique.

XMLHttp Requests.

Further Considerations.

The Same Origin Policy.

Cache Control.

Summary.

Chapter 3: Ajax Patterns.

Communication Control Patterns.

Predictive Fetch.

Page Preloading Example.

Submission Throttling.

Incremental Form Validation Example.

Incremental Field Validation Example.

Periodic Refresh.

New Comment Notifier Example.

Multi-Stage Download.

Additional Information Links Example.

Fallback Patterns.

Cancel Pending Requests.

Try Again.

Summary.

Chapter 4: XML, XPath, and XSLT.

XML Support in Browsers.

XML DOM in IE.

XML DOM in Firefox.

Cross-Browser XML.

A Basic XML Example.

XPath Support in Browsers.

Introduction to XPath.

XPath in IE.

Working with Namespaces.

XPath in Firefox.

Working with Namespace Resolver.

Cross-Browser XPath.

XSL Transformation Support in Browsers.

Introduction to XSLT.

XSLT in IE.

XSLT in Firefox.

Cross-Browser XSLT.

Best Picks Revisited.

Summary.

Chapter 5: Syndication with RSS/Atom.

RSS.

RSS 0.91.

RSS 1.0.

RSS 2.0.

Atom .

FooReader.NET.

Client-Side Components.

Server-Side Components.

Tying the Client to the Server.

Setup.

Testing.

Summary.

Chapter 6: Web Services.

Related Technologies.

SOAP.

WSDL.

REST.

The .NET Connection.

Design Decisions.

Creating a Windows Web Service.

System Requirements.

Configuring IIS.

Coding the Web Service.

Creating the Assembly.

Web Services and Ajax.

Creating the Test Harness.

The Internet Explorer Approach.

The Mozilla Approach.

The Universal Approach.

Cross-Domain Web Services.

The Google Web APIs Service.

Setting Up the Proxy.

Summary.

Chapter 7: JSON.

What Is JSON?

Array Literals.

Object Literals.

Mixing Literals.

JSON Syntax.

JSON Encoding/Decoding.

JSON versus XML.

Server-Side JSON Tools.

JSON-PHP.

Other Tools.

Creating an Autosuggest Text Box.

Functionality Overview.

The HTML.

The Database Table.

The Architecture.

The Classes.

The AutoSuggest Control.

The Suggestion Provider.

The Server-Side Component.

The Client-Side Component.

Summary.

Chapter 8: Web Site Widgets.

Creating a News Ticker Widget.

The Server-Side Component.

The Client-Side Component.

Styling the News.

Implementing the News Ticker Widget.

Creating a Weather Widget.

The Weather.com SDK.

The Server-Side Component.

The Client-Side Component.

Getting Data from the Server.

Customizing the Weather Widget.

Implementing the Weather Widget.

Creating a Web Search Widget.

The Server-Side Component.

The Client-Side Component.

Customizing the Web Search Widget.

Implementing the Web Search Widget.

Creating a Site Search Widget.

The Server-Side Component.

The Client-Side Component.

Customizing the Site Search Widget.

Implementing the Site Search Widget.

Summary.

Chapter 9: AjaxMail.

Requirements.

Architecture.

Resources Used.

The Database Tables.

The Configuration File.

The AjaxMailbox Class.

Performing Actions.

The User Interface.

The Folder View.

Read View.

Compose View.

Layout.

Tying It All Together.

Helper Functions.

The Mailbox.

Callback Functions.

Event Handlers.

The Last Step.

Summary.

Chapter 10: Ajax Frameworks.

JPSpan.

How It Works.

Installing JPSpan.

Creating the Server-Side Page.

Creating the Client-Side Page.

Error Handling.

Type Translation.

Summary of JPSpan.

DWR.

How It Works.

Installing DWR.

Creating the Client-Side Page.

Using a Custom Class.

Error Handling.

More about dwr.xml.

Converters.

Summary of DWR.

Ajax.NET.

How It Works.

Installing Ajax.NET.

Creating the Web Page.

Simple and Complex Types.

Session State.

Summary of Ajax.NET.

Summary.

Index.