Chapter 2. Combining PHP and jQuery
In this chapter, we will cover:
Fetching data from PHP using jQuery
Creating a query string automatically for all form elements
Detecting an AJAX request in PHP
Sending data to PHP
Aborting AJAX requests
Creating an empty page and loading it in parts
Handling errors in AJAX requests
Preventing a browser from caching AJAX request
Loading JavaScript on demand to reduce page load time