$this->getRequest()->isXmlHttpRequest() always returns false in Zend -
i'm trying check see when action has been requested ajax or not , condition returning false in zend framework.
here conditional:
if ($this->getrequest()->isxmlhttprequest()) { // ajax } else { // not ajax }
i'm sure right condition, because works elsewhere in code. guess i'm wondering how check url request coming from? if die on $this->getrequest()->isxmlhttprequest()
, print_r()
result, 1. guess means it's working. amiss , can't figure out what. i've commented out of other code in action , still same error -- thinks it's not ajax.
how begin figure out what's wrong? request coming ajax file upload script. think automatically ajax request, apparently not. thoughts, anyone?
it thinks it's not ajax
judging comments of question - you're right.
Comments
Post a Comment