Pro PHP and jQuery

By Jason Lengstorf

This book is for intermediate programmers interested in building Ajax web applications using jQuery and PHP. Along with teaching some advanced PHP techniques, it will teach you how to take your dynamic applications to the next level by adding a JavaScript layer with jQuery.

Full Description

  • ISBN13: 978-1-4302-2847-9
  • User Level: Intermediate to Advanced
  • Publication Date: June 21, 2010
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $49.99
  • eBook Price: $34.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

This book is for intermediate programmers interested in building Ajax web applications using jQuery and PHP. Along with teaching some advanced PHP techniques, it will show you how to take your dynamic applications to the next level by adding a JavaScript layer with jQuery.

  • Learn to utilize built-in PHP functions to build calendar tools.
  • Learn how jQuery can be used for Ajax, animation, client-side validation, and more.

What you’ll learn

  • How to use PHP to build a calendar application that allows users to post, view, edit, and delete events
  • How to use jQuery to allow the calendar app to be viewed and edited without requiring page refreshes using built-in Ajax functions
  • The power and versatility of PHP's object-oriented programming style
  • The various forms of security available and how to best apply them
  • jQuery plug-in development patterns to create modular, reusable jQuery plug-ins.
  • The basics of jQuery effects, including fading elements, generating HTML markup on the fly, and creating modal windows

Who this book is for

This book is intended for programmers who want to bridge the gap between front- and back-end programming. It does not cover HTML or CSS except where absolutely necessary, and it focuses on taking intermediate PHP developers to the next level while getting comfortable with Ajax and the power of jQuery.

Table of Contents

Table of Contents

  1. Introducing jQuery
  2. Common jQuery Actions and Methods
  3. Object-Oriented Programming
  4. Build an Events Calendar
  5. Add Controls to Create, Edit, and Delete Events
  6. Password Protecting Sensitive Actions and Areas
  7. Enhancing the User Interface with jQuery
  8. Editing the Calendar with Ajax and jQuery
  9. Performing Form Validation with Regular Expressions
  10. Extending jQuery
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page Start with 126 page:
I found inconsistent sections on chapter 4. The figure 4-1 doesn't show the correct folder structure of the calendar scripts. The class wrapper script doesn't have the include section related with database class. The initialization file, called init.inc.php doesn't work properly, the problem is related with the function _autload($class), the variable $class doesn't load the calendar name class properly.

On page 73:

The line that says:

jQuery.ready(function($){

Should be:

jQuery(document).ready(function($){

On page 126:

Undefined variable: db in C:\wamp\www\Pro PHP & jQuery\Source Files\sys\class\class.db_connect.inc.php on line 31

Intersting because I do get the response from:

echo "<pre>", var_dump($cal), "</pre>";
on page 133.

On page 126:
* @param object $dbo
*/
protected function __construct($dbo=NULL)

should be:

* @param object $db
*/
protected function __construct($db=NULL)


On page 153:
Notice: Undefined variable: event_info in /var/www/php_y_jquery/ch04/sys/class/class.Calendar.inc.php on line 314