JSFiddle - React, Tailwind, and code Playground
by Terrance Smith
JavaScript
function getTableSchemas() {
//http://assessmentssvc_test.infinit-i.net/IMobieService.svc/GetTS?callback=jQuery111305897112907841802_1456423564083&_=1456423564087
//var url = urlConfig.serviceUrl + urlConfig.mobileService + 'GetTS' + urlConfig.callbackfix;
var url ='http://assessmentssvc_test.infinit-i.net/IMobieService.svc/GetTS?callback=jQuery111305897112907841802_1456423564083&_=1456423564087';
return $http.jsonp(url)
.success(success)
.catch(fail);
function success(response) {
//tableSchemas = response.GetTSResult;
return response.GetTSResult;
}
function fail(e) {
return exception.catcher('XHR Failed for get Table Schema')(e);
}
}
var result = Promise.resolve(getTableSchemas());
console.log(result);