My goal is to call a Web Service using Jquery. i found this example from this site : How to use jQuery to call an ASP.NET web service?
i modified it to my use :
function InfoByDate(aUrl){
var divToBeWorkedOn = '#AjaxPlaceHolder';
var webMethod = 'http://MyWebService/Web.asmx/GetInfoByDates'
var parameters = "{'sUrl':'" + aUrl + "'}"
$.ajax({
type: "POST",
url: webMethod,
data: parameters,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
$(divToBeWorkedOn).html(msg.d);
},
error: function(e){
$(divToBeWorkedOn).html("Unavailable");
}
});
}
Now i get back a js error access denied! my web service is located in the same domain so cross domain is not relevant. Can someone help me with that issue? Cheers NirNiroN