Monday, June 21, 2010

Find Ajax Request in a Page

To find ajax request we can use the below condition.

if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']))
{
//Ajax Code Here
die;
}