You are previewing AJAX and PHP.
O'Reilly logo
AJAX and PHP

Book Description

AJAX and PHP: Building Responsive Web Applications is the most practical and efficient resource a reader can get to enter the exciting world of AJAX. This book will teach you how to create faster, lighter, better web applications by using the AJAX ingredients technologies to their full potential.



Table of Contents

  1. AJAX and PHP
  2. Credits
  3. About the Authors
  4. About the Reviewers
  5. Preface
    1. What This Book Covers
    2. What You Need for This Book
    3. Conventions
    4. Reader Feedback
    5. Customer Support
      1. Downloading the Example Code for the Book
      2. Errata
      3. Questions
  6. 1. AJAX and the Future of Web Applications
    1. Delivering Functionality via the Web
      1. Advantages of Web Applications
    2. Building Websites Since 1990
      1. HTTP and HTML
      2. PHP and Other Server-Side Technologies
      3. JavaScript and Other Client-Side Technologies
      4. What’s Been Missing?
    3. Understanding AJAX
    4. Building a Simple Application with AJAX and PHP
      1. Time for Action—Quickstart AJAX
        1. What Just Happened?
    5. Summary
  7. 2. Client-Side Techniques with Smarter JavaScript
    1. JavaScript and the Document Object Model
      1. Time for Action—Playing with JavaScript and the DOM
        1. What Just Happened?
    2. JavaScript Events and the DOM
      1. Time for Action—Using JavaScript Events and the DOM
        1. What Just Happened?
    3. Even More DOM
      1. Time for Action—Even More DOM
        1. What Just Happened?
    4. JavaScript, DOM, and CSS
      1. Time for Action—Working with CSS and JavaScript
        1. What Just Happened?
    5. Using the XMLHttpRequest Object
      1. Creating the XMLHttpRequest Object
        1. Creating Better Objects for Internet Explorer
      2. Initiating Server Requests Using XMLHttpRequest
      3. Handling Server Response
        1. Time for Action—Making Asynchronous Calls with XMLHttpRequest
          1. What Just Happened?
    6. Working with XML Structures
      1. Time for Action—Making Asynchronous Calls with XMLHttpRequest and XML
        1. What Just Happened?
      2. Handling More Errors and Throwing Exceptions
      3. Creating XML Structures
    7. Summary
  8. 3. Server-Side Techniqueswith PHP and MySQL
    1. PHP and DOM
      1. Time for Action—Doing AJAX with PHP
        1. What Just Happened?
    2. Passing Parameters and Handling PHP Errors
      1. Time for Action—Passing PHP Parameters and Error Handling
        1. What Just Happened?
    3. Connecting to Remote Servers and JavaScript Security
      1. Time for Action—Connecting to Remote Servers
        1. What Just Happened?
    4. Using a Proxy Server Script
      1. Time for Action—Using a Proxy Server Script to Access Remote Servers
        1. What Just Happened?
    5. A Framework for Making Repetitive Asynchronous Requests
      1. Time for Action—Implementing Repetitive Tasks
        1. What Just Happened?
    6. Working with MySQL
      1. Creating Database Tables
      2. Manipulating Data
      3. Connecting to Your Database and Executing Queries
        1. Time for Action—Working with PHP and MySQL
          1. What Just Happened?
    7. Wrapping Things Up and Laying Out the Structure
      1. Time for Action—Building the Friendly Application
        1. What Just Happened?
    8. Summary
  9. 4. AJAX Form Validation
    1. Implementing AJAX Form Validation
      1. Thread-Safe AJAX
        1. Time for Action—AJAX Form Validation
          1. What Just Happened?
    2. Summary
  10. 5. AJAX Chat
    1. Introducing AJAX Chat
      1. AJAX Chat Solutions
    2. Implementing AJAX Chat
      1. Time for Action—Ajax Chat
        1. What just happened?
    3. Summary
  11. 6. AJAX Suggest and Autocomplete
    1. Introducing AJAX Suggest and Autocomplete
      1. Google Suggest
    2. Implementing AJAX Suggest and Autocomplete
      1. Time for Action;AJAX Suggest and Autocomplete
        1. What Just Happened?
    3. Summary
  12. 7. AJAX Real-Time Charting with SVG
    1. Implementing a Real-Time Chart with AJAX and SVG
      1. Time for Action—Building the Real-Time SVG Chart
        1. What Just Happened?
    2. Summary
  13. 8. AJAX Grid
    1. Implementing the AJAX Grid Using Client-Side XSLT
      1. Time for Action—AJAX Grid
        1. What Just Happened?
    2. Summary
  14. 9. AJAX RSS Reader
    1. Working with RSS
      1. The RSS Document Structure
      2. Google Reader
    2. Implementing the AJAX RSS Reader
      1. Time for Action—Building the RSS Reader Application
        1. What Just Happened?
    3. Summary
  15. 10. AJAX Drag and Drop
    1. Using Drag and Drop on the Web
      1. Shopping Carts
      2. Sortable Lists
    2. Building the AJAX Drag-and-Drop Sortable List Application
      1. Time for Action—Task Management Application with AJAX
        1. What Just Happened?
    3. Summary
  16. A. Preparing Your Working Environment
    1. Preparing Your Windows Playground
      1. Installing Apache
      2. Installing MySQL
      3. Installing PHP
    2. Preparing Your *nix Playground
      1. Installing Apache
      2. Installing MySQL
      3. Installing PHP
    3. Installing phpMyAdmin
    4. Preparing the AJAX Database