3 Dec 2010 5:10 AM #1
[CLOSED] Unable to disable timeout in Ext.Ajax
We were hoping to be able to disable the timeout
in Ext.Ajax.request by setting the timeout property
to null. Looking at the code we can see that this
is not possible, even though it seems that this was
intended at some point. We have therefore concluded
that this must be a bug.
If you look at the handleReadyState method of
src/adapter/ext-base-ajax.js (line 187) it checks that a
callback has been set and if not no timeout for the
request is set.
In the method request in file src/data/Connection.js line 219
the timeout is set to a number explicitly using Ext.num.
This means that it is not possible to disable timeout of an
Ext version tested:
- Ext 3.3.1
- only default ext-all.css
Browser versions tested against:
- Chrome 7
3 Dec 2010 5:14 AM #2
- Join Date
- Mar 2007
- The Netherlands
- Vote Rating
3 Dec 2010 9:18 AM #3
Thamks for your quick reply! i tested it and it works like you described.
I expected that setting the timeout to null would do the same.
23 May 2014 1:06 AM #4
By rramkumar in forum Ext 3.x: Help & DiscussionReplies: 16Last Post: 31 Oct 2014, 12:22 AM
By sacha in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 2 Aug 2010, 11:50 PM
By sriharshaparigi in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 30 Mar 2010, 4:54 AM