Is it possible to make an asynchronous call to a REST Service in Javascript. I have a snippet as follows but I dont want myService.execute to be triggered asynchronously.
code
var nextPage = localStorage.getItem('nextPage');
if(typeof nextPage !== 'undefined') {
localStorage.removeItem('nextPage');
myService.execute({});
Appery.navigateTo(nextPage, {transition: 'slideup', reverse: false});
}
else {
alert('Local Storage is not set');
}
/code