Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increasing Ajax request timeout in ExtJs

Is there one single configuration in ExtJs library to increase Ajax request timeout?

I have tried following two configurations but neither helped:

Ext.override(Ext.data.Connection, {
    timeout: 60000
});

Ext.Ajax.timeout = 60000;
like image 906
Kabeer Avatar asked Oct 24 '13 10:10

Kabeer


1 Answers

I used the 2 that you mentioned, but also had to override these:

Ext.override(Ext.data.proxy.Ajax, { timeout: 60000 });
Ext.override(Ext.form.action.Action, { timeout: 60 });

Update for ExtJS 5:

It looks like you now need to set the Ext.Ajax timeout using setTimeout() for ExtJS 5+, instead of just setting the property:

Ext.Ajax.setTimeout(60000);
like image 168
kevhender Avatar answered Oct 16 '22 00:10

kevhender