开发者

Default value of timeout for a YUI Ajax webservice call

开发者 https://www.devze.com 2023-02-17 08:49 出处:网络
Does someone has idea on what is the default timeout for an AJAX call through YUI, e.g. if we do not mention any value as开发者_如何学Python timeout then what would be the value.

Does someone has idea on what is the default timeout for an AJAX call through YUI, e.g. if we do not mention any value as开发者_如何学Python timeout then what would be the value.

Appreciate the help in advance.

Regards,

Vaibhav


looking at YUI connection manager code, it seems that if there is no timeout property set in the callback, it will not abort the ajax call (so is left to the browser/network settings)

if(callback && callback.timeout){
        this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消