Hybrid View

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    6
    Vote Rating
    0
    tech_help is on a distinguished road

      0  

    Default Unanswered: Webservice calls stuck up - network unavailability

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,649
    Answers
    3454
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You need to handle failures on Ajax requests or store loads
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

Thread Participants: 1