Skip to content

Instantly share code, notes, and snippets.

@rattanchauhan
Last active November 6, 2016 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rattanchauhan/57990429fe268b54cda629426900cc6c to your computer and use it in GitHub Desktop.
Save rattanchauhan/57990429fe268b54cda629426900cc6c to your computer and use it in GitHub Desktop.
Setting global default ajax timeout through Sencha Architect
Ext.data.proxy.Server.override ({
timeout: 300000
});
Ext.data.Connection.override({
withCredentials: false,
useDefaultXhrHeader: false,
disableCaching:false,
timeout: 300000
});
Ext.Ajax.setWithCredentials(false);
Ext.Ajax.setUseDefaultXhrHeader(false);
Ext.Ajax.setDisableCaching(false);
Ext.Ajax.setTimeout(300000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment