-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathApplicationCache.html
More file actions
13 lines (13 loc) · 13.2 KB
/
Copy pathApplicationCache.html
File metadata and controls
13 lines (13 loc) · 13.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html><html><head><meta charset="utf-8"><title>ApplicationCache JavaScript API</title><meta name="description" content="Interactive API reference for the JavaScript ApplicationCache Object. The ApplicationCache describes the state of files cached for the current page. Pages set the manifest="&lt;location to manifest&g"><link rel="stylesheet" type="text/css" href="styles.css"><script type="text/javascript">var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23450559-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();</script></head><body><script>if (sessionStorage.collapsed === 'true') {
document.body.classList.add('members-collapsed');
}
if (localStorage.theme) {
document.body.parentElement.classList.add(localStorage.theme);
}</script><div class="topnav"><a href="/">JavaScripture</a><div class="bookmarks"><a class="bookmark contribute" href="https://github.com/nkronlage/JavaScripture">Contribute via GitHub</a> <a class="bookmark" href="/feedback">Feedback</a></div></div><div class="container"><nav class="leftnav"><div id="searchContainer"><input id="searchBox" type="text" placeholder="Search (Ctrl + S)" autocomplete="false"><div id="resultsBox" style="display:none;"></div></div><div id="apichooser"><a href="#" onclick="openApiChooser(); return false;"><div class="arrow"></div><span id="selectedsets"></span></a><div id="obscure"></div><div id="apisets"><ul></ul></div></div><div class="toc"><h2>ApplicationCache</h2><div class="navgroup"><div class="group collapsed"><a href="#InstanceProperties" onclick="expandoClicked(this.parentNode); return false;"><div class="arrow"></div>Instance Properties</a><div class="subgroup"><a href="#status">status</a></div></div><div class="group collapsed"><a href="#InstanceMethods" onclick="expandoClicked(this.parentNode); return false;"><div class="arrow"></div>Instance Methods</a><div class="subgroup"><a href="#swapCache_">swapCache</a><a href="#update_">update</a></div></div><div class="group collapsed"><a href="#InstanceEvents" onclick="expandoClicked(this.parentNode); return false;"><div class="arrow"></div>Instance Events</a><div class="subgroup"><a href="#cached">cached</a><a href="#checking">checking</a><a href="#downloading">downloading</a><a href="#error">error</a><a href="#noupdate">noupdate</a><a href="#progress">progress</a><a href="#updateready">updateready</a></div></div><div class="group collapsed"><a href="#ApplicationCacheProperties" onclick="expandoClicked(this.parentNode); return false;"><div class="arrow"></div>ApplicationCache Properties</a><div class="subgroup"><a href="#CHECKING">CHECKING</a><a href="#DOWNLOADING">DOWNLOADING</a><a href="#IDLE">IDLE</a><a href="#UNCACHED">UNCACHED</a><a href="#UPDATEREADY">UPDATEREADY</a></div></div></div><h2>Browser API</h2><div id="related-apis" class="navgroup"></div><h2>All API</h2><div id="rootObjs" class="navgroup"><span class="empty">No API set selected.</span></div></div></nav><div class="content"><h1 class="declaration"><span class="object">ApplicationCache</span> <span class="type">: <a href="/EventTarget">EventTarget</a></span></h1><div class="metadata"></div><div class="objectdescription">The ApplicationCache describes the state of files cached for the current page. Pages set the <code>manifest="<location to manifest>"</code> attribute on the <code><html></code> tag to define the set of files to be cached. Obtained through the <a href="/Window#applicationCache"><code>window.applicationCache</code></a> property. See <a href="https://html.spec.whatwg.org/multipage/offline.html">Offline WebPage Spec</a> for more details.<div class="membermetadata"><a href="https://html.spec.whatwg.org/#applicationcache" class="spec">Spec</a></div></div><div><a name="InstanceProperties"></a><h2>Instance Properties</h2><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="status"></a><div class="declaration"><span class="membername primary">status</span> : <a class="membertype" href="/Number">Number</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description">The current status of the cache. Will be one of <a href="#UNCACHED"><code>UNCACHED</code></a>, <a href="#IDLE"><code>IDLE</code></a>, <a href="#CHECKING"><code>CHECKING</code></a>, <a href="#DOWNLOADING"><code>DOWNLOADING</code></a>, or <a href="#UPDATEREADY"><code>UPDATEREADY</code></a>.</p><div class="membermetadata"><a href="https://html.spec.whatwg.org/#dom-appcache-status" class="spec">Spec</a></div></div></div></div><div><a name="InstanceMethods"></a><h2>Instance Methods</h2><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="swapCache"></a> <a name="swapCache_"></a><div class="declaration"><span class="membername primary">swapCache</span>() : <a class="membertype" href="/undefined">undefined</a></div><div class="member-body"><p class="description">Replaces application cache with the updated list of files from the server. This does not automatically update the resources of the page. You can use <a href="Location#reload"><code>location.reload()</code></a> to update the page.</p><div class="membermetadata"><a href="https://html.spec.whatwg.org/#dom-appcache-swapcache" class="spec">Spec</a></div></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="update"></a> <a name="update_"></a><div class="declaration"><span class="membername primary">update</span>() : <a class="membertype" href="/undefined">undefined</a></div><div class="member-body"><p class="description">Checks to see if there is an updated manifest file on the server. This automatically happens once when the page first loads.</p><div class="membermetadata"><a href="https://html.spec.whatwg.org/#dom-appcache-update" class="spec">Spec</a></div></div></div></div><div><a name="InstanceEvents"></a><h2>Instance Events</h2><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="cached"></a> <a name="oncached"></a><div class="declaration"><span class="membername primary">oncached</span> / <span class="membername primary">'cached'</span> <span class="metadata">event</span><div class="subfunction"><span class="membername">listener</span>(<span class="membername">event</span> : <a class="membertype" href="/Event">Event</a>) : <a class="membertype" href="/undefined">undefined</a></div></div><div class="member-body"><p class="description"></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="checking"></a> <a name="onchecking"></a><div class="declaration"><span class="membername primary">onchecking</span> / <span class="membername primary">'checking'</span> <span class="metadata">event</span><div class="subfunction"><span class="membername">listener</span>(<span class="membername">event</span> : <a class="membertype" href="/Event">Event</a>) : <a class="membertype" href="/undefined">undefined</a></div></div><div class="member-body"><p class="description">Event fired when the browser is going to check to see if the manifest has been updated on the server.</p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="downloading"></a> <a name="ondownloading"></a><div class="declaration"><span class="membername primary">ondownloading</span> / <span class="membername primary">'downloading'</span> <span class="metadata">event</span><div class="subfunction"><span class="membername">listener</span>(<span class="membername">event</span> : <a class="membertype" href="/Event">Event</a>) : <a class="membertype" href="/undefined">undefined</a></div></div><div class="member-body"><p class="description">Event fired when the manifest has upated and the browser is going to start downloading it.</p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="error"></a> <a name="onerror"></a><div class="declaration"><span class="membername primary">onerror</span> / <span class="membername primary">'error'</span> <span class="metadata">event</span><div class="subfunction"><span class="membername">listener</span>(<span class="membername">event</span> : <a class="membertype" href="/Event">Event</a>) : <a class="membertype" href="/undefined">undefined</a></div></div><div class="member-body"><p class="description">Event fired when the server returned an error status when attempting to download the app manifest.</p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="noupdate"></a> <a name="onnoupdate"></a><div class="declaration"><span class="membername primary">onnoupdate</span> / <span class="membername primary">'noupdate'</span> <span class="metadata">event</span><div class="subfunction"><span class="membername">listener</span>(<span class="membername">event</span> : <a class="membertype" href="/Event">Event</a>) : <a class="membertype" href="/undefined">undefined</a></div></div><div class="member-body"><p class="description"></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="progress"></a> <a name="onprogress"></a><div class="declaration"><span class="membername primary">onprogress</span> / <span class="membername primary">'progress'</span> <span class="metadata">event</span><div class="subfunction"><span class="membername">listener</span>(<span class="membername">event</span> : <a class="membertype" href="/ProgressEvent">ProgressEvent</a>) : <a class="membertype" href="/undefined">undefined</a></div></div><div class="member-body"><p class="description"></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="updateready"></a> <a name="onupdateready"></a><div class="declaration"><span class="membername primary">onupdateready</span> / <span class="membername primary">'updateready'</span> <span class="metadata">event</span><div class="subfunction"><span class="membername">listener</span>(<span class="membername">event</span> : <a class="membertype" href="/Event">Event</a>) : <a class="membertype" href="/undefined">undefined</a></div></div><div class="member-body"><p class="description">Event fired when all resources listed in the manifest have been downloaded.</p></div></div></div><div><a name="ApplicationCacheProperties"></a><h2>ApplicationCache Properties</h2><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="CHECKING"></a><div class="declaration"><span class="membername primary">CHECKING</span> : <a class="membertype" href="/Number">Number</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description"></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="DOWNLOADING"></a><div class="declaration"><span class="membername primary">DOWNLOADING</span> : <a class="membertype" href="/Number">Number</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description"></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="IDLE"></a><div class="declaration"><span class="membername primary">IDLE</span> : <a class="membertype" href="/Number">Number</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description"></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="UNCACHED"></a><div class="declaration"><span class="membername primary">UNCACHED</span> : <a class="membertype" href="/Number">Number</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description"></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="UPDATEREADY"></a><div class="declaration"><span class="membername primary">UPDATEREADY</span> : <a class="membertype" href="/Number">Number</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description"></p></div></div></div><div class="bottomnav"><a href="/">home</a> <a href="/license">license</a> <a href="https://github.com/nkronlage/JavaScripture">contribute</a> <a href="/feedback">feedback</a> <a id="toggle-theme" href="#">toggle light/dark mode</a></div><div class="copyright">Copyright © JavaScripture Contributors</div></div></div></body><script src="javascripture.js"></script></html>