abort ajax request

I make some querys and need break it before it done.
In Jquery it:

XHR=$.get(...);
...

XHR.abort()

And Webix ?

There is no public API for such task.
You can define a timeout for the ajax request, so it will be aborted after defined time delay.

No. timeout is not good.
I need some query as select and one as update. And abort all select before critical update. But when no update - select is critical too and select can take long time.

There is no easy way to do so with Webix ajax helpers. The only way how raw XMLHttpRequest can be catched is the onBeforeAjax event ( when you have an xhr object, you can call xhr.abort() )

Also, if this is not a direct ajax call, but .load api of any data component, calling clearAll on the same component will abort the ajax call.

"onBeforeAjax " - thank you. I’ll try it.