$.ajax not working in IE
$.ajax not working in IE
I'm using the following code:
-
$.ajax({
url: "ChartData.xml",
async: false,
success: function(Data) {
$(Data).find("Point").each(function() {
var x = $(this).attr("x");
var y = $(this).attr("y");
var pt = new JRB.Point(parseFloat(x), parseFloat(y));
points.push(pt);
});
},
error: function(){alert("error")}
});
In FF and Chrome the success function is called but in IE it the error is called. I can't figure out what is wrong. Any help is appreciated. Thanks.