Skip to main content

Posts

Showing posts with the label how knockout js communicate with rest services

how knockout js communicate with rest services

how knockout js communicate with rest services window.pcx.global = {     baseUrl : "http://localhost:2000/ restservicesURL " ,     contentType : "application/json; charset=utf-8" ,     dataType : "json" } var setHeaderRequest = function (xhr, companyId) {     xhr.setRequestHeader( "CompanyID" , companyId); } var ajaxAsynch = function (url, data, CallType, callback) {     var global = window.pcx.global;         $.ajax({             url: global.baseUrl + url,             cache: false ,             beforeSend: function (xhr) {                 setHeaderRequest(xhr, "1");      ...