Chapter 20. GETTING THE BEST OF BOTH WORLDS WITH PHP AND SPRY

The Spry gallery that you built in the previous chapter has two important shortcomings. First, the page's content is generated entirely inside the browser using JavaScript, leaving nothing for a search engine to index and failing miserably in an older browser or if JavaScript is disabled. Second, although the content is generated dynamically, the XML sources are static. In the case of a photo gallery, this might not be a major drawback, but one of the main reasons for creating dynamic web pages is to exploit the ability to update content on the fly without the need to build everything from scratch again. Rather than creating a new XML document every time a new photo is added or deleted, ...

Get The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP 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.