Beginning Ajax with PHP
11 comments | Posted: 8 January 07 in Books, by Nathan Smith
He starts out by explaining some of the concepts behind Ajax, and how it differs from web programming in a controlled environment. He gives real-life examples of how to use asynchronous scripting, such as an image uploader / photo gallery. He also gives examples of how to use Ajax for form submission.
He shows how to use the Google Maps API to create a spatially enabled web application – in this case, one that will locate nearby video game outlets. He also explains how to make use of PEAR – PHP Extension and Application Repository, using proven code to speed up Ajax development.
He also covers how to make use of various web services, and touches on potential pitfalls for security when using Ajax. I liked the way he referred to Ajax as an increased surface area of attack. While not necessarily hazardous to your site or data, it does afford would-be malicious hackers more opportunity. Lee shows how to defend against this and secure your code.
Lastly, he finishes up with an overview of DOM Scripting methods. To me, this seems like something that would have been better suited to the beginning of the book, but I suppose he positioned it as such to delve right into the guts of Ajax, and explain the theory behind it later. I did appreciate this tangible approach.
Discuss This Topic
Comments closed after 2 weeks.