Update to webix 6.3 + Ajax

Hi.
i´d worked worked Version 6.1.
After Update to 6.3 i noticed that my Ajax requests doesn´t work.
I have centralized all Requests in a function like this:

    webix.ajax().post("router.php?f=" + func, params,function (text) {
        if (cb) {
            cb(text);
            if (mask) doProgress(false);
        } else {
            if (mask) doProgress(false);
            return text;
        }
    });

I´d see that the Update works with promises, but won´t work like this:

    webix.ajax().post("router.php?f=" + func, params).then(function (text) {
        if (cb) {
            cb(text.json());
            if (mask) doProgress(false);
        } else {
            if (mask) doProgress(false);
            return text.json();
        }
    });

What is the problem ?
BR
Christian

Tagged:

Comments

  • Hi,

    Could you please provide more details regarding the 'not working' behaviour?

    Your code looks correctly - https://snippet.webix.com/6wyjqkue - but maybe some information about the use case can clarify the origin of the issue.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion