Yaf_Request_Http::isXmlHttpRequest

Determin if request is Ajax Request

Description

public bool Yaf_Request_Http::isXmlHttpRequest()

Check the request whether it is a Ajax Request.

Note:

This method depends on the request header: HTTP_X_REQUESTED_WITH, some Javascript library doesn't set this header while doing Ajax request

Parameters

This function has no parameters.

Return Values

boolean