| |
| |
Introduction | |
| |
| |
An Introduction to the Book Samples I: Getting Started | |
| |
| |
| |
Introduction to Ajax | |
| |
| |
The XML DOM | |
| |
| |
Measuring the Benefits | |
| |
| |
| |
The Request | |
| |
| |
An In-Depth Look at XMLHttpRequest | |
| |
| |
A Standard XHR | |
| |
| |
A Database-Enabled XHR | |
| |
| |
Sending Data to a Database-Enabled XHR | |
| |
| |
Creating the Object | |
| |
| |
Asynchronous Data Transfers | |
| |
| |
The Ready State | |
| |
| |
HTTP Status Codes and Headers | |
| |
| |
| |
The Response | |
| |
| |
XML | |
| |
| |
Elements | |
| |
| |
Attributes | |
| |
| |
CDATA | |
| |
| |
Parsing XML | |
| |
| |
JSON | |
| |
| |
The Syntax | |
| |
| |
Using JSON | |
| |
| |
Parsing JSON | |
| |
| |
| |
Rendering the Response with XHTML and CSS | |
| |
| |
XHTML | |
| |
| |
CSS II: Creating and Using the JavaScript Engine | |
| |
| |
| |
Object-Oriented JavaScript | |
| |
| |
Object-Oriented Approaches | |
| |
| |
Using the new Operator | |
| |
| |
Literal Notation | |
| |
| |
Associative Arrays | |
| |
| |
JScript.NET | |
| |
| |
Object Constructors | |
| |
| |
Instances | |
| |
| |
Properties | |
| |
| |
Methods | |
| |
| |
Prototypes | |
| |
| |
Instances | |
| |
| |
Creating Properties | |
| |
| |
Overriding and Overwriting Properties | |
| |
| |
Property Protection | |
| |
| |
Methods | |
| |
| |
Extending Objects with Prototyped Methods | |
| |
| |
| |
Creating the Engine | |
| |
| |
Creating a Custom Ajax Wrapper | |
| |
| |
Making Requests | |
| |
| |
The Ready State | |
| |
| |
The Response | |
| |
| |
Creating an Ajax Updater | |
| |
| |
Constructing the Object | |
| |
| |
Updating the Request Object | |
| |
| |
The Response | |
| |
| |
| |
Using the Engine | |
| |
| |
Getting Started | |
| |
| |
Making a Request | |
| |
| |
Engine Methods and Properties | |
| |
| |
| |
Debugging | |
| |
| |
The JavaScript onerror Event | |
| |
| |
responseText | |
| |
| |
IE Developer Toolbar | |
| |
| |
Installing the Plug-in | |
| |
| |
Disabling the Cache Navigating the DOM | |
| |
| |
Viewing Class and ID Information | |
| |
| |
Safari Enhancer | |
| |
| |
Installing Safari Enhancer | |
| |
| |
The JavaScript Console | |
| |
| |
FireBug | |
| |
| |
Installing FireBug | |
| |
| |
The Command Line | |
| |
| |
Logging Messages in the Console | |
| |
| |
Levels of Logging | |
| |
| |
Inspecting Elements | |
| |
| |
Spying on Ajax | |
| |
| |
| |
Extending the Engine | |
| |
| |
Creating a Utilities Object | |
| |
| |
Handling Status Codes with an HTTP Object | |
| |
| |
HTTP Status Code Categories | |
| |
| |
Using the HTTP Object III: Creating Reusable Components | |
| |
| |
| |
Accordion | |
| |
| |
Getting Started | |
| |
| |
The XML Architecture | |
| |
| |
Requesting the XML | |
| |
| |
Creating the Accordion Object | |
| |
| |
Panel Functionality and Data Display | |
| |
| |
Creating the CSS | |
| |
| |
| |
Tree View Structuring the Data | |
| |
| |
Handling the Response | |
| |
| |
Rendering the GUI | |
| |
| |
Adding Style to the Component | |
| |
| |
| |
Client-Side Validation | |
| |
| |
Getting Started | |
| |
| |
Creating a Validation Object | |
| |
| |
Validating User Input | |
| |
| |
Providing Visual Feedback | |
| |
| |
The Server Side | |
| |
| |
The Constructor | |
| |
| |
Verifying User Information | |
| |
| |
Registering and Logging In a User | |
| |
| |
| |
Data Grid | |
| |
| |
Getting Started | |
| |
| |
Creating a DataGrid Object | |
| |
| |
Displaying the Data | |
| |
| |
Creating a DataRow Object | |
| |
| |
Creating a DataColumn Object | |
| |
| |
Adding Design to the Component IV: AJAX Patterns | |
| |
| |
| |
Singleton Pattern | |
| |
| |
An Overview of the Singleton Pattern | |
| |
| |
Creating an Object Using the Singleton Pattern | |
| |
| |
Using the Singleton Object | |
| |
| |
| |
Model View Controller | |
| |
| |
An Overview of the Pattern | |
| |
| |
Creating the Pattern | |
| |
| |
Using the Pattern | |
| |
| |
| |
The Observer Pattern | |
| |
| |
Pattern Overview | |
| |
| |
Register Observers Overview | |
| |
| |
Notify Observers Overview | |
| |
| |
Unregister Observers Overview | |
| |
| |
Creating an Error-Handling Object | |
| |
| |
Register Observers | |
| |
| |
Notify Observers | |
| |
| |
Unregister Observers | |
| |
| |
Using the Error-Handling Object | |
| |
| |
| |
Data Reflection Pattern | |
| |
| |
An Overview | |
| |
| |
The Multi-User Pattern | |
| |
| |
Creating the Pattern | |
| |
| |
| |
Interaction Patterns | |
| |
| |
Creating a History with Cookies | |
| |
| |
The Historian Object | |
| |
| |
Creating and Displaying the XML | |
| |
| |
The Navigation Object | |
| |
| |
Drag and Drop | |