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.
  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    12
    Vote Rating
    0
    Champi is on a distinguished road

      0  

    Default 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]);
                }
            }
        },

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.

  3. #3
    Touch Premium Member
    Join Date
    Dec 2010
    Posts
    10
    Vote Rating
    0
    hranum is on a distinguished road

      0  

    Exclamation 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]);
    	        }
    	    }
    	}
    	
    });

Tags for this Thread