-
2 Aug 2010 6:36 AM #1
Does Ext.Ajax.timeout work for small values?
Does Ext.Ajax.timeout work for small values?
I'm trying to provoke an AJAX timeout to check that my error handling is correctly set up.
I've set Ext.Ajax.timeout to various values (e.g. 2, 2000) but my AJAX calls (which I've artificially made take a long time, ~20s) happily continue to succeed.
I've verified that Ext.Ajax.timeout really is set at the point of the AJAX call. I'm using an up-to-date Firefox and ExtJS 3.2.1. I'm using ext adapter (my forum searches on this topic sometimes point the finger at the jquery adapter).
Should I expect Ext.Ajax.timeout work reliably, or are there limitations not mentioned in the docs?
-
2 Aug 2010 6:56 AM #2
Ah never mind - it appears there are other 30s defaults stashed away, e.g. on a form submission, the form appears to have its own 30s default, which is overriding the global default.
-
2 Aug 2010 9:23 AM #3
These are the separate timeouts I've found:
(If any devs stumble upon this post - I'd propose that the latter two use the first unless explicitly set.)Code:Ext.Ajax.timeout (milliseconds) Ext.data.Connection.prototype.timeout (milliseconds) Ext.form.BasicForm.prototype.timeout (seconds)
-
2 Aug 2010 11:50 PM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
1. Ext.Ajax is an Ext.data.Connection instance, so those 2 timeouts are basically the same.
2. You forgot:
Code:Ext.Updater.defaults.timeout (seconds)
Similar Threads
-
Ext.Ajax.timeout issue
By sriharshaparigi in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 30 Mar 2010, 4:54 AM -
[FIXED-325][3.0.2] Ext.lib.Ajax - timeout not cleared for aborted requests
By ThorstenSuckow in forum Ext 3.x: BugsReplies: 1Last Post: 27 Oct 2009, 9:02 PM -
Is it safe to use Ext.fly in Ajax/timeout completion routines?
By fjanon in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 15 Aug 2007, 1:26 AM


Reply With Quote