$.ajax({ type: "POST", //GET or POST or PUT or DELETE verb url: 'http://vsp065:5858/Service1.svc/GetData', data: { value: "5" }, contentType: 'application/json; charset=utf-8', // content type sent to server dataType: 'json', //Expected data format from server processdata: true, //True or False success: function (msg) {//On Successfull service call debugger; }, error: function (xhr, status, e) { alert(e); } // When Service call fails });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)