Ajax post to an online resource from an app-cached html
Hi guys,
The situation is: From a cached HTML try to access a web service online, if you can't reach it (probably because of no connection) load the last data from local storage.
The problem is that jQuery ajax is giving me an error, even if the web service is online. If I remove the HTML from the application cache the code works. I debugged a little and it seems that the 'status' that jquery is getting from the call is 0 instead of 200 - 300.
How can I solve that? Since the web service is an online resource I can't use the flag isLocal: true.
Thanks in advance,
Fabio