AnsweredAssumed Answered

Query arcgis web service with $.ajax (jquery)

Question asked by elussier on Nov 27, 2012
Latest reply on Nov 28, 2012 by elussier
Hi,

Does any one know how to query a arcgis web service json format with jquery $.ajax ?

I was thinking using something like this in order to test if it returns data :


[HTML]$(document).ready(function(){
$.ajax( {
  type:'Get',
  url:'http://xxx/yyy/rest/services/ppp/rrrr/MapServer/1/28?f=json',
  datatype: "jsonp",
  success:function(data) {
  alert(data);
  }
})
});[/HTML]

When trying the url in a browser the json is return...

Thanks.

Outcomes