aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/xmlhttprequesteventtarget/onprogress
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/xmlhttprequesteventtarget/onprogress
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/xmlhttprequesteventtarget/onprogress')
-rw-r--r--files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html b/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html
new file mode 100644
index 0000000000..7973898e1f
--- /dev/null
+++ b/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html
@@ -0,0 +1,73 @@
+---
+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>