View Full Version : Ajax problems, status = 0

13 Dec 2011, 2:24 AM
I'm trying to do an Ajax call to a .html page to get the content of it. But for some reason it gives me the following error:

XMLHttpRequest cannot load http://www.domain.com/cms/info.html?_dc=1323771597793 (http://www.playlikeachampion.nl/cms/AFQ/info/info.html?_dc=1323771597793). Origin null is not allowed by Access-Control-Allow-Origin.

faq.js:11server-side failure with status code 0

When i browse directly to the url then i see that the url is valid and the content is displayed in my webbrowser. Any idea why i can't retrieve the data with my Ajax call??

url: 'http://www.domain.com/cms/info.html',
success: function(response, opts) {
failure: function(response, opts) {
console.log('server-side failure with status code ' + response.status);

13 Dec 2011, 8:18 AM
Ajax requests are prohibited by the browser to go across different origins. The only workaround is if you are wanting to transport JSON