How does Kohana determine if a request is an AJAX one?
Is there anything different in the referrer string? Do I need to add a GET param, perhaps ?ajax=true ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It checks if the request is made by XMLHttpRequest since most browser send a header in this case with this indication: header
HTTP_X_REQUESTED_WITHwould be set toXMLHttpRequest.