Most JavaScript frameworks, such as jquery, Mootools, etc., will send additional HTTP_X_REQUESTED_WITH header information when making Ajax requests. The headers treat them as an ajax request, so the Ajax request can be detected on the server side.
Most JavaScript frameworks, such as jquery, Mootools, etc., will send additional HTTP_X_REQUESTED_WITH header information when making Ajax requests, treating them as an ajax request, so Ajax requests can be detected on the server side. Here is a piece of php code for detecting ajax requests. |