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:
Is your site part of http://www.nasa.gov/? Otherwise, XMLHttpRequest will fail due to Same Origin Policy.
Also, if the page is served as a non-HTTP request, the status
can be 0. See https://developer.mozilla.org/En/Using_XMLHttpRequest#section_3.
Post a Comment for "XMLHttpRequest.status Always Returning 0"