14. Adding JavaScript and Ajax

Part 4, new in this edition, is largely about ways you can improve the two example sites and enhance the customer experience. One of the absolutely best ways you can improve any online user’s experience is by incorporating JavaScript. Most of this chapter will explain and demonstrate how you can enhance some of the existing features by applying the world’s most popular scripting language. But the chapter will also introduce a couple of new concepts that can only be accomplished using JavaScript.

Instead of breaking the chapter into those ideas that pertain to the “Knowledge Is Power” site, or the Coffee site, or dividing the content up into public, administrative, security, and so forth, I’ll start with some relatively ...

Get Effortless E-Commerce with PHP and MySQL, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.