Check for AJAX Request


/ Published in: PHP
Save to your folder(s)

A simple function to check if the request comes from an AJAX XMLHttpRequest.
Use it if your page should behave differently when called from AJAX.
Comes from jquery mailing list: http://jquery.com/discuss/2006-June/006656/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.