PHP / XHR?


/* AJAX check  */
if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
  /* special ajax here */
}
(c) http://davidwalsh.name/detect-ajax

No comments:

Post a Comment