AJAX and PHP: Building Modern Web Applications 2nd Edition


AJAX and PHP: Building Modern Web Applications 2nd Edition
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.39
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters

 

  • 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

Book Details

Language : English
Paperback : 308 pages [ 235mm x 191mm ]
Release Date : December 2009
ISBN : 1847197728
ISBN 13 : 9781847197726
Author(s) : Audra Hendrix, Bogdan Brinzarea, Cristian Darie
Topics and Technologies : All Books, Web Development, AJAX, Open Source, PHP, Web Development


Table of Contents

Preface
Chapter 1: The World of AJAX and PHP
Chapter 2: JavaScript and the AJAX Client
Chapter 3: Object Oriented JavaScript
Chapter 4: Using PHP and MySQL on the Server
Chapter 5: AJAX Form Validation
Chapter 6: Debugging and Profiling AJAX Applications
Chapter 7: Advanced Patterns and Techniques
Chapter 8: AJAX Chat with jQuery
Chapter 9: AJAX Grid
Appendix: Preparing Your Working Environment
Index
  • Chapter 1: The World of AJAX and PHP
    • The big picture
      • AJAX and Web 2.0
    • Building websites since 1990
      • HTTP and HTML
      • PHP and other server-side technologies
      • JavaScript and other client-side technologies
      • What's missing?
    • The world of AJAX
      • What is AJAX made of?
      • Uses and misuses of AJAX
      • Resources and tools
    • Setting up your environment
    • Building a simple application with AJAX and PHP
    • Summary
  • 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
      • Creating the XMLHttpRequest object
        • JavaScript exception handling
        • Creating better objects for Internet Explorer 6
      • Initiating server requests using XMLHttpRequest
      • Handling server response
    • Working with XML structures
      • Handling more errors and throwing exceptions
      • Creating XML structures
    • Summary
  • Chapter 3: Object Oriented JavaScript
    • Why is OOP in JavaScript important?
    • Object-oriented programming concepts
      • Encapsulation
      • Inheritance
      • Polymorphism
    • Object-oriented programming with JavaScript
      • JavaScript objects are dictionaries
      • JavaScript functions
        • JavaScript functions are first-class objects
        • Inner functions
        • Closures
      • JavaScript classes
        • Constructors
        • Class diagrams
        • Referencing external functions
        • Prototype objects
        • Instance methods and properties
        • Static methods and properties
        • Private members
      • The JavaScript execution context
        • var x, this.x, and x
        • Using the right context
    • JavaScript OOP in practice: Introducing JSON
      • JSON concepts
      • A simple JSON example
  • Summary
  • Chapter 4: Using PHP and MySQL on the Server
    • PHP, DOM, and XML
    • PHP and JSON
    • Passing parameters and handling PHP errors
    • Working with MySQL
      • Creating database tables
      • Manipulating data
      • Connecting to your database and executing queries
    • Summary
  • Chapter 6: Debugging and Profiling AJAX Applications
    • Debugging and profiling with Internet Explorer
      • Enabling debugging in Internet Explorer 6 and 7
      • Debugging in Internet Explorer 8
      • Other Internet Explorer debugging tools
    • Debugging and profiling with Firefox
      • Firebug
      • Venkman JavaScript debugger
      • Web Developer
    • Summary
  • Chapter 7: Advanced Patterns and Techniques
    • Predictive fetching pattern
    • Progress indicator pattern
    • Unobtrusive JavaScript
    • Progressive enhancement and graceful degradation
    • Asynchronous file upload with AJAX
      • HTTP and how file upload works
      • Iframe for asynchronous file upload with AJAX
    • Cross-domain calls
      • Cross-domain calls using a server proxy
      • Cross-domain calls using Flash
      • Cross-domain calls using iframes
      • Cross-domain calls using JSONP
    • Cross-site request forgery
      • JSON hijacking
      • Mitigations of CSRF
    • Cross-site scripting
      • Exploits
        • Non-persistent XSS
        • Persistent XSS
      • Mitigations of XSS
        • Input validation
        • Escaping
        • Cookies security
    • Summary
  • Chapter 8: AJAX Chat with jQuery
    • Chatting using AJAX
    • jQuery
      • Before we get started
      • The first steps
        • jQuery DOM Selectors
        • jQuery wrapper object
      • Method chaining
      • Event handling
      • A simple example
      • Basic concepts
    • AJAX chat
      • The chat application
    • Summary
  • Chapter 9: AJAX Grid
    • Implementing the AJAX data grid
      • Code overview
        • The database
        • Styles and colors
        • The server side
        • Creating the grid, step by step
    • Summary

Audra Hendrix

Audra Hendrix was educated at Northwestern University. She works as a consultant in applied technology and marketing to small and medium-sized businesses. While her client list includes Fortune 500 companies, she prefers the flexibility, agility, and challenges of small to medium-sized businesses. She has consulted both in the United States and France for businesses seeking to better utilize their resources and maximize their gains by reinventing and reapplying back office and Internet applications, data management, cost-effective marketing strategies, staffing requirements, and planning and deployment of new or emerging product lines.


Bogdan Brinzarea

Bogdan has a strong background in Computer Science holding a Master and Bachelor Degree at the Automatic Control and Computers Faculty of the Politehnica University of Bucharest, Romania and also an Auditor diploma at the Computer Science department at Ecole Polytechnique, Paris, France.

His main interests cover a wide area from embedded programming, distributed and mobile computing and new web technologies. Currently, he is employed as an Alternative Channels Specialist at Banca Romaneasca, Member of National Bank of Greece where he is responsible for the Internet Banking project and coordinates other projects related to security applications and new technologies to be implemented in the banking area.


Cristian Darie

Cristian Darie is a software engineer with experience in a wide range of modern technologies, and the author of numerous books, including his popular AJAX and PHP tutorial by Packt, his ASP.NET E-Commerce tutorial, by APress and his forthcoming SEO tutorial for PHP developers by Wrox Press. Cristian is studying distributed application architectures for his PhD, and is getting involved with various commercial and research projects. When not planning to buy Google, he enjoys his bit of social life. If you want to say "hi", you can reach Cristian through his personal website at http://www.cristiandarie.ro.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 1 submitted: last submission 06 Mar 2013

Errata type: Code | Page number: 40

The jsdom.js file code shows the line: if(hour>=22 || hour<=5), which is correct.

However, in the online code files the line is incorrect given as: if(hour>=22 && hour<=5)

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

AJAX and PHP: Building Modern Web Applications 2nd Edition +    Away3D 3.6 Essentials =
50% Off
the second eBook
Price for both: $37.50

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

 

  • 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

Build modern Web 2.0 Applications with JavaScript, PHP, MySQL, and jQuery with this practical AJAX tutorial featuring detailed case studies.

Approach

This book is a step-by-step, example-driven AJAX tutorial, featuring complete case studies. Each chapter contains a friendly mix of theory and practice, so that your journey through the book will be pleasant, yet efficient. You’ll be coding your first AJAX application at the end of the first chapter, and with each new chapter you’ll develop increasingly complex AJAX applications featuring advanced techniques and coding patterns.

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

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software