Window.applicationcache Events, Introduction

Source: Internet
Author: User
Tags add time

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.