xhr.timeout and IE

Hi,
I need to handle an ajax timeout in my app.
To do that I use onBeforeAjax event and modify xhr object:

xhr.timeout = 30000;
xhr.ontimeout = function () { webix.message(‘адынадынадын’); };

But IE throws an exception in this case. I know that IE is very peculiar browser and it need to set timeout of xhr on very peculiar stage.

How to do that in the best way?

For some reason, IE won’t accept xhr.timeout in onBeforeAjax event. Try to set the timeout through the corresponding method:

http://webix.com/snippet/d9efb16b

Thank you, I’ve thought about that.
But maybe there is a possibility to set a timeout for all ajax requests?

Unfortunately, the only onBeforeAjax allows modifying ajax requests.