My web service call returns this into data1
"{"d":"PCIS Follow Add ID and Codes when printed"}"
I learne that when using jquery with asp.net i must use data1.d
however when i try to do alert(data.d);
i get undefined returned even though data.d value shows as
"{"d":"PCIS Follow Add ID and Codes when printed"}"
any ideas on how i can use this information
the web service should be returning a string
$.ajax({
type: "POST",
url: "Services/WorkService.asmx/WorkDescription",
data: "{'workUnitId' : '" + $("option:selected", $(dropdown)).text() + "','id': '" + combobox.val() + "'}",
contentType: "application/json; charset=utf-8",
dataType:"json",
success: function(data1) {
var jsObject = JSON.parse(data1.d);
alert(jsObject);
combobox.attr("_tooltip", data1.d);
}
});
},