Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > b4603fcd3afb71dfbec25f4867b993f4 > files > 272

js_of_ocaml-doc-2.4.1-2.mga5.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="EventSource.html">
<link rel="next" href="Firebug.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="CSS" rel="Chapter" href="CSS.html">
<link title="Dom" rel="Chapter" href="Dom.html">
<link title="Dom_events" rel="Chapter" href="Dom_events.html">
<link title="Dom_html" rel="Chapter" href="Dom_html.html">
<link title="Dom_svg" rel="Chapter" href="Dom_svg.html">
<link title="EventSource" rel="Chapter" href="EventSource.html">
<link title="File" rel="Chapter" href="File.html">
<link title="Firebug" rel="Chapter" href="Firebug.html">
<link title="Form" rel="Chapter" href="Form.html">
<link title="Js" rel="Chapter" href="Js.html">
<link title="Json" rel="Chapter" href="Json.html">
<link title="Jsonp" rel="Chapter" href="Jsonp.html">
<link title="Keycode" rel="Chapter" href="Keycode.html">
<link title="Lwt_js" rel="Chapter" href="Lwt_js.html">
<link title="Lwt_js_events" rel="Chapter" href="Lwt_js_events.html">
<link title="Regexp" rel="Chapter" href="Regexp.html">
<link title="Sys_js" rel="Chapter" href="Sys_js.html">
<link title="Typed_array" rel="Chapter" href="Typed_array.html">
<link title="Url" rel="Chapter" href="Url.html">
<link title="WebGL" rel="Chapter" href="WebGL.html">
<link title="WebSockets" rel="Chapter" href="WebSockets.html">
<link title="XmlHttpRequest" rel="Chapter" href="XmlHttpRequest.html">
<link title="Lwt_log_js" rel="Chapter" href="Lwt_log_js.html">
<link title="JsooTop" rel="Chapter" href="JsooTop.html">
<link title="Ocamlbuild_js_of_ocaml" rel="Chapter" href="Ocamlbuild_js_of_ocaml.html">
<link title="Deriving_Json" rel="Chapter" href="Deriving_Json.html">
<link title="Deriving_Json_lexer" rel="Chapter" href="Deriving_Json_lexer.html">
<link title="Pa_deriving_Json" rel="Chapter" href="Pa_deriving_Json.html"><title>File</title>
</head>
<body>
<div class="navbar"><a class="pre" href="EventSource.html" title="EventSource">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="Firebug.html" title="Firebug">Next</a>
</div>
<h1>Module <a href="type_File.html">File</a></h1>

<pre><span class="keyword">module</span> File: <code class="code">sig</code> <a href="File.html">..</a> <code class="code">end</code></pre><div class="info module top">
File API<br>
<b>See also</b> <a href="https://developer.mozilla.org/en-US/docs/Web/API/File">the documentation of the API.</a><br>
</div>
<hr width="100%">

<pre><span id="TYPEblob"><span class="keyword">class type</span> <a href="File.blob-c.html">blob</a></span> = <code class="code">object</code> <a href="File.blob-c.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEfile"><span class="keyword">class type</span> <a href="File.file-c.html">file</a></span> = <code class="code">object</code> <a href="File.file-c.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEfile_any"><span class="keyword">type</span> <code class="type"></code>file_any</span> </pre>


<pre><span class="keyword">module</span> <a href="File.CoerceTo.html">CoerceTo</a>: <code class="code">sig</code> <a href="File.CoerceTo.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEfileList"><span class="keyword">class type</span> <a href="File.fileList-c.html">fileList</a></span> = <code class="code">object</code> <a href="File.fileList-c.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEfileError"><span class="keyword">class type</span> <a href="File.fileError-c.html">fileError</a></span> = <code class="code">object</code> <a href="File.fileError-c.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEprogressEvent"><span class="keyword">class type</span> <code class="type">['a]</code> <a href="File.progressEvent-c.html">progressEvent</a></span> = <code class="code">object</code> <a href="File.progressEvent-c.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEprogressEventTarget"><span class="keyword">class type</span> <a href="File.progressEventTarget-c.html">progressEventTarget</a></span> = <code class="code">object</code> <a href="File.progressEventTarget-c.html">..</a> <code class="code">end</code></pre>
<pre><code><span id="TYPEreadyState"><span class="keyword">type</span> <code class="type"></code>readyState</span> = </code></pre><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTreadyState.EMPTY"><span class="constructor">EMPTY</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTreadyState.LOADING"><span class="constructor">LOADING</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTreadyState.DONE"><span class="constructor">DONE</span></span></code></td>

</tr></table>



<pre><span id="TYPEfileReader"><span class="keyword">class type</span> <a href="File.fileReader-c.html">fileReader</a></span> = <code class="code">object</code> <a href="File.fileReader-c.html">..</a> <code class="code">end</code></pre>
<pre><span class="keyword">module</span> <a href="File.ReaderEvent.html">ReaderEvent</a>: <code class="code">sig</code> <a href="File.ReaderEvent.html">..</a> <code class="code">end</code></pre>
<pre><span id="VALfilename"><span class="keyword">val</span> filename</span> : <code class="type"><a href="File.file-c.html">file</a> <a href="Js.html#TYPEt">Js.t</a> -> <a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a></code></pre><div class="info ">
<code class="code">filename</code> handles old firefox without name property<br>
</div>

<pre><span id="VALfileReader"><span class="keyword">val</span> fileReader</span> : <code class="type"><a href="File.fileReader-c.html">fileReader</a> <a href="Js.html#TYPEt">Js.t</a> <a href="Js.html#TYPEconstr">Js.constr</a></code></pre>
<pre><span id="VALreadAsBinaryString"><span class="keyword">val</span> readAsBinaryString</span> : <code class="type">#<a href="File.blob-c.html">blob</a> <a href="Js.html#TYPEt">Js.t</a> -> <a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> Lwt.t</code></pre>
<pre><span id="VALreadAsText"><span class="keyword">val</span> readAsText</span> : <code class="type">#<a href="File.blob-c.html">blob</a> <a href="Js.html#TYPEt">Js.t</a> -> <a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> Lwt.t</code></pre>
<pre><span id="VALreadAsText_withEncoding"><span class="keyword">val</span> readAsText_withEncoding</span> : <code class="type">#<a href="File.blob-c.html">blob</a> <a href="Js.html#TYPEt">Js.t</a> -> <a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> -> <a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> Lwt.t</code></pre>
<pre><span id="VALreadAsDataURL"><span class="keyword">val</span> readAsDataURL</span> : <code class="type">#<a href="File.blob-c.html">blob</a> <a href="Js.html#TYPEt">Js.t</a> -> <a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> Lwt.t</code></pre>
<pre><span id="VALaddEventListener"><span class="keyword">val</span> addEventListener</span> : <code class="type">(#<a href="File.progressEventTarget-c.html">progressEventTarget</a> as 'a) <a href="Js.html#TYPEt">Js.t</a> -><br>       'b <a href="Dom.Event.html#TYPEtyp">Dom.Event.typ</a> -><br>       ('a <a href="Js.html#TYPEt">Js.t</a>, 'b) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a> -> bool <a href="Js.html#TYPEt">Js.t</a> -> <a href="Dom.html#TYPEevent_listener_id">Dom.event_listener_id</a></code></pre><div class="info ">
Add an event listener.  This function matches the
      <code class="code">addEventListener</code> DOM method, except that it returns
      an id for removing the listener.<br>
</div>
</body></html>