/ Published in: PHP
Expand |
Embed | Plain Text
/** * Returns true if the request comes from an ajax call * * @return bool * @author Robert Agthe */ function is_ajax() { return (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')?true:false; }
You need to login to post a comment.
