Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > dcb57bc1f616cf3a8072df2efbbf2767 > files > 97

elinks-0.12-18.mga7.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Cache Object</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="The ELinks Manual"><link rel="up" href="ch15.html" title="Chapter 15. Scripting ELinks with ECMAScript"><link rel="prev" href="ch15s02.html" title="ELinks Object"><link rel="next" href="ch15s04.html" title="View-state Object"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Cache Object</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch15s02.html">Prev</a> </td><th width="60%" align="center">Chapter 15. Scripting ELinks with ECMAScript</th><td width="20%" align="right"> <a accesskey="n" href="ch15s04.html">Next</a></td></tr></table><hr></div><div class="section" title="Cache Object"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="smjs-cache_entry-object"></a>Cache Object</h2></div></div></div><p>The cache object mentioned in the descriptions of
<a class="link" href="ch15s02.html#smjs-elinks.load_uri"><span class="emphasis"><em>elinks.load_uri</em></span></a> and
<a class="link" href="ch15s02.html#smjs-elinks.preformat_html"><span class="emphasis"><em>elinks.preformat_html</em></span></a> is a wrapper for the
internal ELinks cache object.  ELinks passes the ECMAScript cache object as an
argument to your ECMAScript function, and keeps the corresponding document in
the cache until the function returns.  After that, ELinks may remove the
document from the cache, even if the function has saved the cache object to
some global variable.  Such an expired cache object does not work but it does
not crash ELinks either.</p><p><span class="strong"><strong>Compatibility:</strong></span> ELinks 0.11.0</p><div class="section" title="Cache Object Properties"><div class="titlepage"><div><div><h3 class="title"><a name="smjs-cache_entry-properties"></a>Cache Object Properties</h3></div></div></div><div class="variablelist"><dl><dt><span class="term">
<a name="smjs-cache_entry.content"></a> cached.content (string)
</span></dt><dd>
        This is the content received from the server. It can be read and set.
</dd><dt><span class="term">
<a name="smjs-cache_entry.type"></a> cached.type (string)
</span></dt><dd>
        This is the MIME type of the cache entry. It can be read and set.
</dd><dt><span class="term">
<a name="smjs-cache_entry.length"></a> cached.length (number)
</span></dt><dd>
        This is the length of cached.content. It is read-only.
</dd><dt><span class="term">
<a name="smjs-cache_entry.head"></a> cached.head (string)
</span></dt><dd>
        This is the header received from the server. It can be read and set.
</dd><dt><span class="term">
<a name="smjs-cache_entry.uri"></a> cached.uri (string)
</span></dt><dd>
        This is the URI of the cache entry. It is read-only.
</dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch15s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch15.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch15s04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ELinks Object </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> View-state Object</td></tr></table></div></body></html>