[2.0b1/rc1][SOLVED] timeout at BasicForm never used
I guess it is a bug at Ext code. Regardless what value I set to timeout, it is always 30 seconds.
BasicForm.js: (action='submit', options.timeout=40)
Code:
doAction : function(action, options){
if(typeof action == 'string'){
action = new Ext.form.Action.ACTION_TYPES[action](this, options);
}
Action.js: (o.timeout = 40. but was never passed to Ext.Ajax.request).
Code:
run : function(){
var o = this.options;
var method = this.getMethod();
var isPost = method == 'POST';
if(o.clientValidation === false || this.form.isValid()){
Ext.Ajax.request(Ext.apply(this.createCallback(), {
form:this.form.el.dom,
url:this.getUrl(!isPost),
method: method,
params:isPost ? this.getParams() : null,
isUpload: this.form.fileUpload
}));
}else if (o.clientValidation !== false){ // client validation failed
this.failureType = Ext.form.Action.CLIENT_INVALID;
this.form.afterAction(this, false);
}
so, when go to ext-base.js, callback.timeout is always 30000, set by default.
Code:
handleReadyState:function(o, callback)
{
var oConn = this;
if (callback && callback.timeout) {
this.timeout[o.tId] = window.setTimeout(function() {
oConn.abort(o, callback, true);
}, callback.timeout);
}