.ajax to call rest web service
Here is my code, however it always call error function
$.ajax({
url: "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/MapServer", type: "GET",
error: function(e){
console.log("error call"+e);
} ,
success: function(resp){
console.log("success") ;
}
});
can anybody tell me what is wrong in this code? Thanks