Closed dancrew32 closed 13 years ago
need to add
req.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
after req.open('GET', url, true);
or else request sniffing backends (like the one on cakephp) wiil not be able to set variables for things like $this->RequestHandler->isAjax()
need to add
after req.open('GET', url, true);
or else request sniffing backends (like the one on cakephp) wiil not be able to set variables for things like $this->RequestHandler->isAjax()