Hi,
after finally having purchased 4 licenses I struggle with making the appcache more transparent for our demo webapp. The idea is to give the user a message once the app is fully cached so he can be sure that it's now working offline.
I took an example from my JavaScript book that runs just fine in the local browser. It has event listeners for the different status values along these lines:
window.applicationCache.oncached = function() {
status("This application is now cached locally");
window.alert('This application is now cached locally');
return false;
};
I add this in the resources js section and don't append it to the export. Both the status messages (in the js console) and the alert message work in Firefox but nothing happens in Safari mobile even though according to Apple window.alert is supported.
Has anyone got an idea why this isn't executed?
I actually also looked into integrating "nicer" dialog windows such as
http://fabien-d.github.io/alertify.js/
Just had trouble integrating the html calls into the app. Any good first hints?
Would be terrific if we could solve this - I'd be willing to share any solution I come of with of course.
Cheers,
Mike