मैंने पाया इस (4.2.3 पर परीक्षण) ExtJS 4 के लिए सबसे अच्छा परिवर्तन है:
// Connection uses its own timeout value hardcoded in ExtJS - we remove it so that Ext.data.Connection will then
// fallback to using Ext.Ajax.timeout, thus giving a single place for setting the timeout
// Bonus: you can change this at runtime
Ext.define('Monitoring.overrides.Connection', {
override: 'Ext.data.Connection',
constructor: function() {
delete this.timeout;
this.callParent(arguments);
}
});
Ext.define('Monitoring.overrides.ProxyServer', {
override: 'Ext.data.proxy.Server',
constructor: function() {
delete this.timeout;
this.callParent(arguments);
}
});
अब आप Ext.Ajax.timeout का उपयोग कर सकते हैं और यह सभी AJAX कॉल (फॉर्म सबमिशन के बारे में नहीं पता) बदल देगा।
स्रोत
2015-09-11 11:13:14
ऐसा लगता है कि यह काम कर रहा है। धन्यवाद। – Kabeer
समय सीमा के बारे में क्या? मैं एक मार्ग गणना पर काम कर रहा हूं और मुझे लगता है कि इसे खत्म करने में बहुत कुछ लगेगा ... –