2 Aug 2010 6:36 AM #1
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:
Ext.Ajax.timeout (milliseconds) Ext.data.Connection.prototype.timeout (milliseconds) Ext.form.BasicForm.prototype.timeout (seconds)
2 Aug 2010 11:50 PM #4
- Join Date
- Mar 2007
- The Netherlands
- Vote Rating
1. Ext.Ajax is an Ext.data.Connection instance, so those 2 timeouts are basically the same.
2. You forgot:
By sriharshaparigi in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 30 Mar 2010, 4:54 AM
By ThorstenSuckow in forum Ext 3.x: BugsReplies: 1Last Post: 27 Oct 2009, 9:02 PM
By fjanon in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 15 Aug 2007, 1:26 AM