1. About Applicationcache objects
Applicationcache objects in IE and Google
In FF, the Offlineresourcelist object
With the Applicationcache object we can add time bindings that can access the current state status value
Console.info (Window.applicationcache); window.applicationCache.oncached=function(e) {console.info (' Cache succeeded '); Console.info (e);} Window.applicationCache.onchecking=function(e) {console.info (' Check in '); //Console.info (e);}window.applicationcache.ondownloading=function(e) {console.info (' In Download '); //Console.info (e);}window.applicationcache.onnoupdate=function(e) {console.info (' No update content '); //Console.info (e);}//window.applicationCache.onprogress = function (e) {//console.info (' update process, already loaded: ' +e.loaded+ ', total: ' +e.total ');////console.info (e);//}Window.applicationCache.addEventListener (' Progress ',function(e) {console.info (' During the update process, it has been loaded: ' + e.loaded + ', total: ' +e.total); Console.info (e);},false); Window.applicationCache.onupdateready=function(e) {console.info (' Update succeeded '); //Console.info (e);}
As follows:
2. Event object for OnProgress events
Both IE and Google are progressevent objects that support loaded and total
For progress objects in FF, loaded and total are not supported
such as
Other API notes: Http://docs.webplatform.org/wiki/apis/appcache/ApplicationCache
Window.applicationcache Events, Introduction