0

I am trying to avoid the ajax url called while page load so that I can maintain of log of posted data from ajax only.

if ($this->_request->isXmlHttpRequest()){ 
 # do the code
}
chettri
  • 11
  • 3
  • http://stackoverflow.com/questions/359047/php-detecting-request-type-get-post-put-or-delete – littleibex May 05 '15 at 09:38
  • Try google before posting questions here. You can find atleast 5 answers of your question on SO. – Bhavik Shah May 05 '15 at 09:44
  • if ($this->_request->isXmlHttpRequest()){ # do the code }once the condition $_SERVER['REQUEST_METHOD'] DOESN'T WORKS. and my question was for ajax url not php. please go through the question carefully . – chettri May 05 '15 at 10:01
  • @chettri Wow! You cannot expect people to help you out with that kind of attitude. – littleibex May 05 '15 at 11:09
  • @littleibex and how bout this one i was not even treating you like that FYI: Try google before posting questions here. You can find atleast 5 answers of your question on SO. – Bhavik Shah 17 – chettri May 06 '15 at 03:22

0 Answers0