Detecting if a request is Ajax
Posted: Thu May 10, 2007 6:56 am
I'm writing the controller part of MVC for a home-grown framework at the moment. I've decided I want to have separate controller actions for handling Ajax request than to normal ones.
I have a request builder object that constructs the request object, this object has to set a property "isAjax" on the request. What can I check for to set such a property?
I have a request builder object that constructs the request object, this object has to set a property "isAjax" on the request. What can I check for to set such a property?