The overall plan

In order to demonstrate how to integrate Ajax into your WordPress plugins, we've chosen a textbook example: automatically showing search results. Later in this book, we'll use Ajax to do more complicated things, but first we're going to cover the basics by breathing life into the standard search widget.

If you don't have the search widget enabled on your site, enable it now so you can see what we're talking about. In the WordPress manager, click on the Appearance | Widgets link and then drag the Search widget into the Primary Widget Area so that it becomes active. On a tangential note, WordPress uses Ajax to save your widget selections without you having to click anything.

Take a look at your home page to verify that you see ...

Get WordPress 3 Plugin Development Essentials 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.