Preview of presentation:
WordPress makes AJAX easy and all too often developers write their own code for handling AJAX. The purpose of this presentation is to walk developers through the process of implementing basic AJAX functionality in themes and plugins. Topics covered will include best practices, client-side AJAX requests via jQuery, server-side processing of requests with WordPress action hooks, proper inclusion of scripts, localizing data and implementing nonces. Sample code will be made available for download.
Additional Resources:
- Using wp_enqueue_script()
- Using wp_localize_script()
- When to use GET versus POST
- More about the jqXHR object