I'd like to retrieve and process some XML cross-domain data using AJAX. Here is my code:
$(document).ready(function(){
$.ajax({
url: "http://www.synthesiagame.com/scoreboardFeed.aspx?p=c71067ca61fb1c8f3dc9e56dd58cd028_ee7c7e67ec3bc17a08b648fc77802697_f334fca735419b6074f78d82fcc9904d",
type: "POST",
dataType: "jsonp xml",
success: function(data) {
alert($(data));
$(data).find('score').each(function(){
$("#testing").append($(this).attr("points") + "<br />");
});
}, error: function(jxhr, status, err) {
alert("Ajax error: status = " + status + ", err = " + err);
}
});
});
This shows the alert() message, but then it doesn't process the XML data. However, if I put a file with XML data on my server as the url it works perfectly.
I've been for two days trying to make this work. I must have read all the questions on this site dealing with similar topics and no answer solved my problem. I'm beginning to think that there might be some problem on their end with the way they present data when they answer requests.