locked
Windows Store app is crashing on Sync web service calls.

    Question

  • i am developing a windows store app which is using Synchronuos Web service calls as it is required.

    But While webservice call is going on if try to touch on Screen that hangs application and it is crashing application.

    How to tackle this situation. can we put Loading images while Sync web service call is going on

    Friday, March 28, 2014 10:32 AM

Answers

  • hi,

    u can use promise which will handle async operations as below:

    WinJS.xhr({url:"webservice url"}).then(

    function onComplete(){

    image.style.hidden

    };

    function onError(){

    };

    )

    //show ur loading images here:

     image.style.visible

    Hope this will help.

    Friday, March 28, 2014 12:33 PM