Results 1 to 2 of 2

Thread: Sencha 2.0 Ext.Ajax.request failure not working on Android 4.1 + Phonegap

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default Sencha 2.0 Ext.Ajax.request failure not working on Android 4.1 + Phonegap

    Here is my code:
    If the server is not reachable the error get not catched by failure and phonegap throws an error which cause the app to exit. Only Android 4.1. Phonegap version: 2.1
    Code:
    Ext.Ajax.request({
                url: url,
                                      
                success: function(xhr) {
                     if(xhr.status==200){
                        
                    }
    
    
                }, failure: function()
                {
                    console.log("server not reachable");
                }
            });

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Vote Rating
    1367
      0  

    Default

    So phonegap captures a 404 or a timeout and the app exits/crashes?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •