With multi-dimensional model as the core, let the factory digital transformation and upgrading “within reach”>>>
In the Ajax requests in extjs, the default timeout of ext.ajax.request is 30 seconds. Sometimes we need to set a longer time for time-consuming operations. At this time, we need to change the timeout of ext.ajax.requse to a longer time. We can set the request timeout through ext.ajax.timeout
For example, if we have a time-consuming request that takes more than 30 seconds, we can modify the timeout by adding this statement before the code requested by ext.ajax.request
Ext.Ajax.timeout=90000;// 90 seconds
Ext.Ajax.request({
url:’xxx.php’,
params:{dataï¼› data},
success:function (response, option) {
// your business code
},
failure:function () {alert (‘communication failure ‘);}
});
The first statement in the above paragraph changes the ext.ajax.request request timeout to 90 seconds
Note: the original text is reprinted from the IT technology house of the blogger’s personal station. The original text links extjs to set the timeout time of Ajax request_ It technology house
bloggers personal technology exchange group: 960640092, WeChat blogger official account is as follows:
Similar Posts:
- org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body
- _DEBUGGER _03 _Server Tomcat v8.0 Server at localhost was unable to start within xx seconds
- Error Code: 2006 – MySQL server has gone away
- When parsing background JSON data with Ajax: unexpected token o in JSON at position 1
- Nginx Timeout Error: upstream timed out (110: Connection timed out) while reading response header from ups…
- Spider Error: Scratch processing timeout [How to Solve]
- Convert to IE9 below $. Ajax to return “no transport” across domains
- JS Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
- XMLHttpRequest status=0 (All You Should Know)
- Using fastcgi_ finish_ Request to achieve asynchronous processing and improve the response speed of the page