Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if( request()->ajax()==false

if ( !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' )
{
       # Ex. check the query and serve requested data
}
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+3 =