I like using the same PHP script for both AJAX and non-AJAX content requests. Using on script just makes everything easier because it’s only one file to update/edit and it’s one more cache-able request. One way to try detect an AJAX request (as opposed to a regular page load) is by using the [...]
Don't forget to follow me on Twitter and be sure to visit Script & Style for the best Javascript and CSS articles around!
Blog traffic is booming. Sponsor the David Walsh Blog and get your brand in from of several thousand users per day!
Detect an AJAX Request in PHP
Related posts:
- Basic Ajax Requests Using MooTools 1.2 Ajax has become a huge part of the modern...
- Periodical Ajax Requests Using MooTools 1.2 Every browser I have, both at work and at home,...
- Ajax Username Availability Checker Using MooTools 1.2 There a many examples of egregious usages of Ajax out...