I have web service and I am calling it from jQuery, everything works fine until I remain on the same server, but when I try to call that service from other domain I don't get anything please somebody help me. Below is my code :
$.ajax({
type: 'POST',
url: 'http://-----------/Service.asmx/BulkUpdate',
data:"{'CaseID': '"+CaseID+"'}",
contentType : "application/json; charset=utf-8;",
"dataType" : "json",
success: function(xData, status)
{
alert(xData.d);
}
,error : function(xhr)
{
alert(xhr.responseText);
}
});