Results 1 to 2 of 2

Thread: Webservice calls stuck up - network unavailability

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Vote Rating

    Default Unanswered: Webservice calls stuck up - network unavailability


    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.


  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


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

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

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