I have the following code:
function test() {
$.when(MyModule.loadData("breadcrumbs", "BreadcrumbsData", jsndata, 'GET')).then(
function (data) {
return data;
});
}
var result = test();
Problem: I am not getting the data in 'result' variable.
I am using Jquery 3.x.
MyModule.loadData is a method that executes a synchronous ajax request and returns the jqXHR object.
Thanks.