webix.ajax().sync()

Hi, I’m having trouble showing a modal box before an ajax().sync() event and closing it after.
The problem is that it doesn’t show anything.
Here’s the snippet:

http://webix.com/snippet/58072879

Thanks in advance.

It’s a question of the rendering speed in different browsers. As you know, sync mode blocks the code execution. For instance, in Chrome the modal box is not rendered completely when the ajax call starts, and the webix.modalbox.hide(box); hides it immediately after the call.

For sync mode, your solution with delay is correct, but I recommend you also consider the usage of the async AJAX call.