-
22 Sep 2011 5:36 PM #1
Ajax Request timeout
Ajax Request timeout
Hi!
seems to be a bug there :
Code:abort : function(r) { if (r && this.isLoading(r)) { if (!request.timedout) {sencha-touch-debug.js:17491Uncaught ReferenceError: request is not defined} request.aborted = true; } r.xhr.abort(); } else if (!r) { var id; for(id in this.requests) { if (!this.requests.hasOwnProperty(id)) { continue; } this.abort(this.requests[id]); } } },
-
23 Sep 2011 4:56 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
Looks like the abort method in the Connection.js file has been rewritten to fix this issue in 1.1.1. All it looks like is it change the 'r' arguments/variables to 'request' as that was the bug in the first place. We shouldn't really use short variables like that in the first place, minification will handle that.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
16 Apr 2012 12:34 AM #3
Not fixed in 1.1.1
Not fixed in 1.1.1
I don't think so. My copy of 1.1.1 still has this error.
Fixed it myself:
Code:Ext.override(Ext.data.Connection, { abort : function(r) { if (r && this.isLoading(r)) { if (!r.timedout) { r.aborted = true; } // Will fire an onreadystatechange event r.xhr.abort(); } else if (!r) { var id; for(id in this.requests) { if (!this.requests.hasOwnProperty(id)) { continue; } this.abort(this.requests[id]); } } } });
Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
in
a recent build.


Reply With Quote