Results 1 to 2 of 2

Thread: Webservice calls stuck up - network unavailability

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default Webservice calls stuck up - network unavailability

    Hi,

    am developing mobile solution using sencha touch 1.1. the app is designed to work in offline mode as well. am facing an issue in the webservice calls when the network goes down before i get the response from the webservice. say for example i have initiated 5 different webservice calls ,before i get response from those calls if network goes down, the app gets stuck up ( i mean its showing inprogress message only). i have used document.addeventlistner("offline") handler as well to detect the network unavailability. But that method is also not getting called in the above mentioned scenario.Otherwise this handler works fine.
    could you pls clarify , whether the web service failure handler will be called or not during sudden network drop? or what could be the way to handle this.

    Thanks.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    You need to handle failures on Ajax requests or store loads
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •