=> The service returns json data.
I'm receiving an error or if I change the datatype to jsonp I see parseerror was not called.
$.ajax(
{
type: "GET",
url:'http://arduinomonitoringservice.cloudapp.net/ArduinoDiagnosticsService.svc/Agents',
dataType: "jsonp",
crossDomain: true,
success: function (data) {
alert('success');
},
beforeSend: function(XMLHttpRequest)
{
alert(XMLHttpRequest.data);
},
error: function (msg, url, line) {
alert('error trapped in error: function(msg, url, line)');
alert('msg = ' + msg.Data + ', url = ' + url + ', line = ' + line);
}
});