Features
- Cover Type: Paperback with 284 pages
- Published by: Packt Publishing March 10, 2006
- Written in: English
- ISBN 10 Number: 1904811825
- ISBN 13 Number: 978-1904811824
-
Book Dimensions:
9.1 x 7.4 x 0.7 inches
- Weighs: 1 pounds
Product 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. 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 youll 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.
Chapter 1:
AJAX and The Future Of Web Applications is an initial incursion into the world of AJAX and the vast possibilities it opens up for web developers and companies, to offer a better experience to their users. In this chapter youll also build your first AJAX-enabled web page, which will give you a first look of the component technologies.
Chapter 2:
Client-Side Techniques with Smarter JavaScript will guide you through the technologies youll use to build AJAX web clients, using JavaScript, DOM, the XMLHttpRequest object, and XML. While not being a complete tutorial for these technologies, youll be taken to the right track of using them together to build a solid foundation for your future applications.
Chapter 3:
Server-Side Techniques with PHP and MySQL completes the theory foundation by presenting how to create smart servers to interact with your AJAX client. Youll learn various techniques for implementing common tasks, including handling security and error handling problems.
Chapter 4:
AJAX Form Validation guides you through creating a responsive, modern form with real-time validation based on server data.
Chapter 5:
AJAX Chat presents a simple online chat that works exclusively using AJAX code, without Java applets, Flash code, or other specialized library, as most chat applications work these days.
Chapter 6:
AJAX Suggest and Autocomplete builds a Google-suggest like feature, that helps you find PHP functions, and forward you to the official help page for the chosen function.
Chapter 7:
SVG (Scalable Vector Graphics) is a text-based graphics language that can be used to draw shapes and text. (SVG is supported natively by Firefox 1.5, and requires a SVG plugin with other browsers). In this case study you learn how to implement a realtime charting solution with AJAX and SVG.
Chapter 8:
AJAX Grid teaches you how to build powerful updatable data grid. Youll learn how to parse XML documents using XSLT to generate the looks of your grid.
Chapter 9:
AJAX RSS Reader uses the SimpleXML PHP library, XML and XSLT, to build a simple RSS aggregator.
Chapter 10:
AJAX Drag and Drop is a demonstration of using the script.aculo.us framework to build a simple list of elements with drag&drop functionality.
Appendix A:
Configuring Your Working Environment teaches you how to install and configure the required software: Apache, PHP, MySQL, phpMyAdmin.
Reader ReviewsI admit, when I first opened this book, I thought it would contain a dry discussion of how to use AJAX methods with PHP. But the book turned out to be so much more than advertised, I think its title must be wrong. It should have been called, "How to Use AJAX Methods with PHP, MySQL, DOM, CSS, SVG, XSL, XML, RSS, and JavaScript Frameworks." I certainly never expected to read it cover to cover, but that's what I did. In addition to integrating a wide range of modern web technologies, the book contains great examples of how to write building blocks for powerful web applications. These include form validation, chat, suggest, auto-complete, charting, grid, RSS, and drag-and-drop. Somewhere in the code for these functions are techniques for almost everything you might want to program into an application. What I really like about the book, however, is the ongoing explanation of how to write the code so it will be secure, and will perform correctly in every browser. Most books I have read don't bother with such details, but this one even lays out a method to create user-friendly error reporting in production mode. It has a strong focus on writing code that might actually be used in a production environment. My only quibble with the authors is that they seemed to be avoiding OOP in their JavaScript, though they used it with their PHP code throughout the book. They said OOP emulation techniques required a longer learning curve. However, the result of their decision is JavaScript files that run for seven or eight pages. I really think that OOP would have been less intimidating to a new programmer than page after page of unbroken code. I would recommend that the authors at least use eye-catching headers for the major functions in these files to help the reader understand the structure of the code. (Readers of the book as published might want to take a highlight pen to the function headings.) As someone who is attempting to write my first significant web application, I think this book is wonderful. I expect to wear it out before I'm through looking up techniques. I already know that my application will need chat, validation, suggest, and data grid. This book practically hands me the code for these. But more than that, it provides me with a view of the basic methods to do many other things. Much of the major content of this book is code. While the authors explain how the code works, the reader will still need to know the basics of HTML, CSS, SQL, and scripting languages, such as PHP and JavaScript. Another major advantage of this book, however, is that the authors give web links to many of the best tutorials on these topics. In fact, it would be possible to start with this book, and use the authors' suggested links to look up almost every major web technology in order to learn it in the context of AJAX and PHP. All in all, that's a lot of value for a book that has less than 300 pages!