I have a page served by a php application where a button makes an ajax call to a web2py controller. However when it arrives the request.ajax field is false and it then tries to redirect to the login page.Is it possible to make an ajax call to a web2py server from a non-web2py page and send the response back to the callling page? Am I doing it wrong?
--
x_req_with = str(request.env.http_x_requested_with).lower()
request.ajax = x_req_with == 'xmlhttprequest'