Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Rattan Chauhan rattanchauhan

🎯
Focusing
Block or report user

Report or block rattanchauhan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rattanchauhan
rattanchauhan / app.js
Last active Nov 6, 2016
Setting global default ajax timeout through Sencha Architect
View app.js
Ext.data.proxy.Server.override ({
timeout: 300000
});
Ext.data.Connection.override({
withCredentials: false,
useDefaultXhrHeader: false,
disableCaching:false,
timeout: 300000
});
@rattanchauhan
rattanchauhan / app.js
Last active Nov 6, 2016
Adding global exception handler through Sencha Architect.
View app.js
Ext.Ajax.on({
requestexception: function(dataconn, response, options) {
console.dir(dataconn);
console.dir(response);
console.dir(response.status);
if (response.status === 401) {
me.redirectTo('login');
}
}
});
You can’t perform that action at this time.