HTML5 Application Cache Error Event Detail

I have an HTML5 offline app and on occasion users have cache errors which I handle with the event listener and display a generic error message.

In order to help debug these I'd like to also display and log the error details (as seen in the Chrome console), such as a failed get. I have not yet found a way to get the details through Javascript. Is this currently possible?


Probably something like this:

var appCache = window.applicationCache;
    function handleCacheError(e){
    appCache.addEventListener('error', handleCacheError, false);

And then you should have the error logged to the Chrome console on error.

Need Your Help

Plot a world map with a specified grid with R

r latitude-longitude maptools world-map

I am trying to use wrld_simpl from maptools package in order to plot a piece of world map with a longitude/latitude grid.

Wrap transactions over existing transactional methods?

java spring

If I have a basic Dao class that is marked as @Transactional on class level, this will cause every call of the Dao to run in it's own transaction.