Free Sample
+ Collection

AJAX and PHP: Building Modern Web Applications 2nd Edition

Audra Hendrix, Bogdan Brinzarea, Cristian Darie

Build user friendly Web 2.0 Applications with JavaScript and PHP
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847197726
Paperback308 pages

About This Book


  • The ultimate AJAX tutorial for building modern Web 2.0 Applications
  • Create faster, lighter, better web applications by using the AJAX technologies to their full potential
  • Leverage the power of PHP and MySQL to create powerful back-end functionality and make it work in harmony with a responsive AJAX clientWrite better JavaScript code to enable powerful web features
  • Understand the complete client-server mechanism by following complete, step-by-step case studies

Who This Book Is For

AJAX and PHP: Building Modern Web Applications, 2nd Edition, is written for PHP developers who:

  • Want to learn how to use PHP, JavaScript, MySQL and jQuery to implement Web 2.0 applications
  • Are looking for a step-by-step, example-driven AJAX tutorial
  • Want to learn advanced AJAX coding patterns and techniques and be able to assess the security and SEO implications of their code

Table of Contents

Chapter 1: The World of AJAX and PHP
The big picture
Building websites since 1990
The world of AJAX
Setting up your environment
Building a simple application with AJAX and PHP
Chapter 2: JavaScript and the AJAX Client
JavaScript and the Document Object Model
JavaScript events and the DOM
Even more DOM
JavaScript, DOM, and CSS
Using the XMLHttpRequest object
Working with XML structures
Chapter 3: Object Oriented JavaScript
Why is OOP in JavaScript important?
Object-oriented programming concepts
Object-oriented programming with JavaScript
JavaScript OOP in practice: Introducing JSON
Chapter 4: Using PHP and MySQL on the Server
Passing parameters and handling PHP errors
Working with MySQL
Chapter 5: AJAX Form Validation
Implementing AJAX form validation
XMLHttpRequest, version 2
AJAX form validation
Chapter 6: Debugging and Profiling AJAX Applications
Debugging and profiling with Internet Explorer
Debugging and profiling with Firefox
Chapter 7: Advanced Patterns and Techniques
Predictive fetching pattern
Progress indicator pattern
Unobtrusive JavaScript
Progressive enhancement and graceful degradation
Asynchronous file upload with AJAX
Cross-domain calls
Cross-site request forgery
Cross-site scripting
Chapter 8: AJAX Chat with jQuery
Chatting using AJAX
AJAX chat
Chapter 9: AJAX Grid
Implementing the AJAX data grid

What You Will Learn


  • Create faster, lighter, better web applications by using the AJAX technologies to their full potential
  • Learn to use PHP and MySQL on the server, and Javascript and jQuery on the client, to build real-world AJAX applications
  • Combine client-side and server-side functionality to enhance the user experience of your site using AJAX
  • Learn to simulate private, instance, and static class members in JavaScript
  • Build an AJAX-enabled form validation page, which is safe to work even if the client doesn't support JavaScript and AJAX

In Detail

AJAX enables interactive interfaces that can replace traditional user interfaces. Enhance the user experience of your PHP website using AJAX with this practical and friendly tutorial! This book is the most efficient resource you can get to enter the exciting world of AJAX with PHP. Based on numerous examples and detailed case studies, this AJAX with PHP tutorial will build your foundation knowledge for creating faster, better web applications.

Detailed description
The best AJAX tutorial for PHP developers has been completely rewritten to be your friendly guide to modern Web 2.0 development techniques! AJAX and PHP: Building Modern Web Applications, 2nd Edition covers every significant aspect of creating and maintaining AJAX and PHP applications.

This book will teach you how to use PHP, JavaScript, MySQL and jQuery to build modern, responsive web applications. After building a strong foundation, the book will walk you through numerous real-world case studies covering techniques you’ll be likely to need for your own applications:

  • Learn how to write unobtrusive, degradable, portable, SEO-friendly AJAX code
  • Understand the object-oriented model of JavaScript and JSON
  • Learn how to use the jQuery JavaScript library by going through two complete case studies
  • Debug your AJAX and PHP code using modern tools
  • Assess the security implications of writing AJAX code and avoid security risks such as cross-site scripting
  • Learn advanced AJAX and PHP patterns and techniques such as predictive fetching, progress indicator, graceful degradation, cross-domain calls, and more
  • Understand the complete client-server mechanism by going through complete, step-by-step case studies, including AJAX Form Validation, and AJAX Online Chat and AJAX Editable DataGrid with jQuery


Read More