function sclick() { alert("m here"); $.ajax({ type: "POST", url: "http://localhost:4780/Service1.svc/myfunction", contentType: "application/json; charset=utf-8 ", dataType: "json", success: success, error: fail }) } function success(result) { alert(result); //alert("Success" + result.myfunctionResult); } function fail(result) { alert("Fail..... " + result.statusText + ": " + result.status); }
success: function (msg) { alert(msg.d); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)