Code Optimization for Ajax JQuery Web Request — Help Drive


When we use ajax calls for consuming web methods we use the following method. $.ajax({ type: “POST”, url: url, data: JSON.stringify(params), contentType: “application/json; charset=utf-8”, dataType: “json”, success: function (result) { if (result == null || result == undefined || result.d.trim() == ”) return; successFunc(JSON.parse(result.d), targetObj); }, failure: function (error) { } }); But to […]

via Code Optimization for Ajax JQuery Web Request — Help Drive

Advertisements