I am having some trouble fetching some JSON data from a certain feed, namely: http://www.bbc.co.uk/radio1/nowplaying/latest.json
When downloading the contents of the file manually and using it locally, there are no problems, so I can rule out the structuring of the document.
However, calling this in jQuery:
$.getJSON('http://www.bbc.co.uk/radio1/nowplaying/latest.json').error(function(XMLHttpRequest, textStatus, errorThrown) { alert(XMLHttpRequest.statusText);
});
returns the text ‘error’ with the status code of 0. Could somebody either, a) verify the results I’m getting or b) suggest where I’m going wrong!