AJAX and PHP Building Responsive Web Applications

AJAX and PHP Building Responsive Web Applications
Language: EnglishFormat: PDF
Author: Cristian Darie, Bogdan Brinzarea, Filip Chereches-Tosa, Mihai BucicaFile size: 3.34 MB
Publisher: Packt PublishingPublish date: March 2006
Tags: IT Books in Amazon

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. Assuming a basic knowledge of PHP, XML, JavaScript and MySQL, this book will help you understand how the heart of AJAX beats and how the constituent technologies work together. This book is written web developers with a basic knowledge of PHP, XML, JavaScript and MySQL. After teaching the foundations, the book will walk you through numerous real-world case studies covering tasks you'll be likely to need for your own applications:

* Server-enabled form-validation page

* Online chat collaboration tool

* Customized type-ahead text entry solution

* Real-time charting using SVG

* Database-enabled, editable and customizable data grid

* RSS aggregator application

* A server-managed sortable list with drag&drop support using the script.aculo.us JavaScript toolkit

The appendices guide you through installing your working environment, using powerful tools that enable debugging, improving, and profiling your code, working with XSLT and XPath.

Table of contents
  • 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
    • 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 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
      • 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
    • 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
    • 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
    • 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
    • Summary
  • Chapter 8: AJAX Grid
    • Implementing the AJAX Grid Using Client-Side XSLT
      • Time for Action—AJAX Grid
    • 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
    • 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
    • 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