web\Request getIsAjax()

getIsAjax() public method

Returns whether this is an AJAX (XMLHttpRequest) request.

Note that jQuery doesn't set the header in case of cross domain requests: https://stackoverflow.com/questions/8163703/cross-domain-ajax-doesnt-send-x-requested-with-header

public boolean getIsAjax ( )
return boolean

Whether this is an AJAX (XMLHttpRequest) request.

doc_Yii
2016-10-30 17:15:49
Comments
Leave a Comment

Please login to continue.