Table of Contents
Preface
Chapter 1: AJAX and the Future of Web Applications
Chapter 2: Client-Side Techniques with Smarter JavaScript
Chapter 3: Server-Side Techniques with PHP and MySQL
Chapter 4: AJAX Form Validation
Chapter 5: AJAX Chat
Chapter 6: AJAX Suggest and Autocomplete
Chapter 7: AJAX Real-Time Charting with SVG
Chapter 8: AJAX Grid
Chapter 9: AJAX RSS Reader
Chapter 10: AJAX Drag and Drop
Appendix A: Preparing Your Working Environment
Index
- Chapter 1: AJAX and the Future of Web Applications
- Delivering Functionality via the Web
- Advantages of Web Applications
- Building Websites Since 1990
- HTTP and HTML
- PHP and Other Server-Side Technologies
- JavaScript and Other Client-Side Technologies
- What's Been Missing?
- Understanding AJAX
- Building a Simple Application with AJAX and PHP
- Time for Action—Quickstart AJAX
- Delivering Functionality via the Web
- Summary
- Chapter 2: Client-Side Techniques with Smarter JavaScript
- JavaScript and the Document Object Model
- Time for Action—Playing with JavaScript and the DOM
- JavaScript and the Document Object Model
- JavaScript Events and the DOM
- Time for Action—Using JavaScript Events and the DOM
- Even More DOM
- Time for Action—Even More DOM
- JavaScript, DOM, and CSS
- Time for Action—Working with CSS and JavaScript
- Using the XMLHttpRequest Object
- Creating the XMLHttpRequest Object
- Creating Better Objects for Internet Explorer
- Initiating Server Requests Using XMLHttpRequest
- Handling Server Response
- Time for Action—Making Asynchronous Calls with XMLHttpRequest
- Creating the XMLHttpRequest Object
- Working with XML Structures
- Time for Action—Making Asynchronous Calls with XMLHttpRequest and XML
- Handling More Errors and Throwing Exceptions
- Creating XML Structures
- Summary
- Chapter 3: Server-Side Techniques with PHP and MySQL
- PHP and DOM
- Time for Action—Doing AJAX with PHP
- PHP and DOM
- Passing Parameters and Handling PHP Errors
- Time for Action—Passing PHP Parameters and Error Handling
- Connecting to Remote Servers and JavaScript Security
- Time for Action—Connecting to Remote Servers
- Using a Proxy Server Script
- Time for Action—Using a Proxy Server Script to Access Remote Servers
- A Framework for Making Repetitive Asynchronous Requests
- Time for Action—Implementing Repetitive Tasks
- Working with MySQL
- Creating Database Tables
- Manipulating Data
- Connecting to Your Database and Executing Queries
- Time for Action—Working with PHP and MySQL
- Wrapping Things Up and Laying Out the Structure
- Time for Action—Building the Friendly Application
- Summary
- Chapter 4: AJAX Form Validation
- Implementing AJAX Form Validation
- Thread-Safe AJAX
- Time for Action—AJAX Form Validation
- Thread-Safe AJAX
- Implementing AJAX Form Validation
- Summary
- Chapter 5: AJAX Chat
- Introducing AJAX Chat
- Implementing AJAX Chat
- Time for Action—Ajax Chat
- Summary
- Chapter 6: AJAX Suggest and Autocomplete
- Introducing AJAX Suggest and Autocomplete
- Google Suggest
- Implementing AJAX Suggest and Autocomplete
- Time for Action—AJAX Suggest and Autocomplete
- Introducing AJAX Suggest and Autocomplete
- Summary
- Chapter 7: AJAX Real-Time Charting with SVG
- Implementing a Real-Time Chart with AJAX and SVG
- Time for Action—Building the Real-Time SVG Chart
- Implementing a Real-Time Chart with AJAX and SVG
- Summary
- Chapter 8: AJAX Grid
- Implementing the AJAX Grid Using Client-Side XSLT
- Time for Action—AJAX Grid
- Implementing the AJAX Grid Using Client-Side XSLT
- Summary
- Chapter 9: AJAX RSS Reader
- Working with RSS
- The RSS Document Structure
- Google Reader
- Implementing the AJAX RSS Reader
- Time for Action—Building the RSS Reader Application
- Working with RSS
- Summary
- Chapter 10: AJAX Drag and Drop
- Using Drag and Drop on the Web
- Shopping Carts
- Sortable Lists
- Building the AJAX Drag-and-Drop Sortable List Application
- Time for Action—Task Management Application with AJAX
- Using Drag and Drop on the Web
- Summary
- Appendix A: Preparing Your Working Environment
- Preparing Your Windows Playground
- Installing Apache
- Installing MySQL
- Installing PHP
- Preparing Your *nix Playground
- Installing Apache
- Installing MySQL
- Installing PHP
- Installing phpMyAdmin
- Preparing the AJAX Database
- Preparing Your Windows Playground