Welcome Guest, Not a member yet? Register   Sign In
is_ajax_request does not recognized XMLHttpRequest
#3

You need to manually specify the requested-with method with plain JS. jQuery and other libraries does it for it like InsiteFX said.
Code:
//Send the proper header information along with the request
ajax.setRequestHeader("X-Requested-With",'xmlhttprequest');
Reply


Messages In This Thread
RE: is_ajax_request does not recognized XMLHttpRequest - by jreklund - 10-04-2018, 10:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB