diff options
Diffstat (limited to 'files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html')
| -rw-r--r-- | files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html b/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html deleted file mode 100644 index 7973898e1f..0000000000 --- a/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html +++ /dev/null @@ -1,73 +0,0 @@ ---- -title: XMLHttpRequestEventTarget.onprogress -slug: Web/API/XMLHttpRequestEventTarget/onprogress -tags: - - Property - - Reference - - Web - - XHR - - XMLHttpRequestEventTarget - - イベントハンドラ -translation_of: Web/API/XMLHttpRequestEventTarget/onprogress ---- -<p>{{APIRef("XMLHttpRequest")}}</p> - -<p><strong><code>XMLHttpRequestEventTarget.onprogress</code></strong> は、正常に成功する前に {{domxref("XMLHttpRequest")}} の情報を定期的に呼び出す関数です。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="notranslate"><em>XMLHttpRequest</em>.onprogress = <em>callback</em>;</pre> - -<h3 id="値">値</h3> - -<ul> - <li><code><em>callback</em></code> は、リクエストが完了する前に定期的に呼び出される関数です。</li> -</ul> - -<h3 id="Example" name="Example">イベント</h3> - -<ul> - <li><em><code>event.loaded</code></em> 現在転送されているデータ量。</li> - <li><em><code>event.total</code></em> 転送されるデータ総量。</li> -</ul> - -<pre class="notranslate">XMLHttpRequest.onprogress = function (event) { - event.loaded; - event.total; -};</pre> - -<h2 id="Example" name="Example">例</h2> - -<pre class="notranslate">var xmlhttp = new XMLHttpRequest(), - method = 'GET', - url = 'https://developer.mozilla.org/'; - -xmlhttp.open(<em>method</em>, <em>url</em>, true); -xmlhttp.onprogress = function () { - //do something -}; -xmlhttp.send(); -</pre> - -<h2 id="仕様">仕様</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">仕様</th> - <th scope="col">備考</th> - <th scope="col">コメント</th> - </tr> - <tr> - <td>{{SpecName('XMLHttpRequest', '#handler-xhr-onload')}}</td> - <td>{{Spec2('XMLHttpRequest')}}</td> - <td>WHATWG living standard</td> - </tr> - </tbody> -</table> - -<h2 id="ブラウザーの互換性">ブラウザーの互換性</h2> - - - -<p>{{Compat("api.XMLHttpRequestEventTarget.onprogress")}}</p> |
