Promise API


#1

Hi…

In this page docs.dhtmlx.com/api__common_promise_other.html does not work. Somebody can help me with giving the right sample code?

Thanks,
Masdju


#2

Unfortunately the problem is not clear.
The following code works well for me locally:
var promise = dhx.ajax.get(url);
promise.then(function(realdata){
console.log(realdata)
});
could you please, clarify what exactly doesn’t work for you or provide a problematic snippet of the code to be tested.