Skip to content Skip to sidebar Skip to footer

XMLHttpRequest.status Always Returning 0

html click me js code var MyObj = { startup : function() { var ajax = null; ajax = new XMLHttpReques

Solution 1:

You can overcome this easily in a local environment by setting up a php proxy (xampp a server and pass a querystring for the url you want to grab). Have your php proxy wget the url and echo its contents. That way your local html file (when viewed as http://localhost/your.html) can send ajax requests out of domain all day. Just don't expect the content to work as though it were local to that domain.


Solution 2:


Post a Comment for "XMLHttpRequest.status Always Returning 0"