diff options
author | MDN <actions@users.noreply.github.com> | 2022-02-11 00:58:37 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2022-02-11 00:58:37 +0000 |
commit | 4873c5f1122ac800cf3c916a52df07e05ddc9dcf (patch) | |
tree | 0b63e7a2179d77b0b20eac780dba8d8cb35355f4 /files/ja/web/api/xmlhttprequest | |
parent | 633d212cfb9c7a5838f350ff88264e460ef0398e (diff) | |
download | translated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.tar.gz translated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.tar.bz2 translated-content-4873c5f1122ac800cf3c916a52df07e05ddc9dcf.zip |
[CRON] sync translated content
Diffstat (limited to 'files/ja/web/api/xmlhttprequest')
-rw-r--r-- | files/ja/web/api/xmlhttprequest/abort_event/index.html | 64 | ||||
-rw-r--r-- | files/ja/web/api/xmlhttprequest/error_event/index.html | 62 | ||||
-rw-r--r-- | files/ja/web/api/xmlhttprequest/load_event/index.html | 62 | ||||
-rw-r--r-- | files/ja/web/api/xmlhttprequest/loadstart_event/index.html | 62 | ||||
-rw-r--r-- | files/ja/web/api/xmlhttprequest/progress_event/index.html | 74 | ||||
-rw-r--r-- | files/ja/web/api/xmlhttprequest/readystatechange_event/index.md (renamed from files/ja/web/api/xmlhttprequest/onreadystatechange/index.md) | 5 |
6 files changed, 327 insertions, 2 deletions
diff --git a/files/ja/web/api/xmlhttprequest/abort_event/index.html b/files/ja/web/api/xmlhttprequest/abort_event/index.html new file mode 100644 index 0000000000..a8a128756c --- /dev/null +++ b/files/ja/web/api/xmlhttprequest/abort_event/index.html @@ -0,0 +1,64 @@ +--- +title: XMLHttpRequestEventTarget.onabort +slug: Web/API/XMLHttpRequest/abort_event +tags: + - API + - Property + - Reference + - Web + - XHMLHttpRequestEventTarget + - イベントハンドラ +translation_of: Web/API/XMLHttpRequestEventTarget/onabort +original_slug: Web/API/XMLHttpRequestEventTarget/onabort +--- +<div>{{APIRef("XMLHttpRequest")}}</div> + +<p><strong><code>XMLHttpRequestEventTarget.onabort</code></strong> は、 {{domxref("XMLHttpRequest.abort()")}} 関数が呼ばれたときなどの {{domxref("XMLHttpRequest")}} トランザクションが中止されたときに呼び出される関数です。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox notranslate"><em>XMLHttpRequest</em>.onabort = <em>callback</em>;</pre> + +<h3 id="値">値</h3> + +<ul> + <li><code><em>callback</em></code> は、トランザクションが中止されたときに実行される関数です。</li> +</ul> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: js notranslate">var xmlhttp = new XMLHttpRequest(), + method = 'GET', + url = 'https://developer.mozilla.org/'; + +xmlhttp.open(<em>method</em>, <em>url</em>, true); +xmlhttp.onabort = function () { + console.log('** The request was aborted'); +}; +xmlhttp.send(); +//.. +xmlhttp.abort(); // This will invoke our onabort handler above +</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-onabort')}}</td> + <td>{{Spec2('XMLHttpRequest')}}</td> + <td>WHATWG living standard</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザーの互換性">ブラウザーの互換性</h2> + + + +<p>{{Compat("api.XMLHttpRequestEventTarget.onabort")}}</p> diff --git a/files/ja/web/api/xmlhttprequest/error_event/index.html b/files/ja/web/api/xmlhttprequest/error_event/index.html new file mode 100644 index 0000000000..a42c9536e3 --- /dev/null +++ b/files/ja/web/api/xmlhttprequest/error_event/index.html @@ -0,0 +1,62 @@ +--- +title: XMLHttpRequestEventTarget.onerror +slug: Web/API/XMLHttpRequest/error_event +tags: + - API + - Property + - Reference + - Web + - XMLHttpRequestEventTarget + - イベントハンドラ +translation_of: Web/API/XMLHttpRequestEventTarget/onerror +original_slug: Web/API/XMLHttpRequestEventTarget/onerror +--- +<div>{{APIRef("XMLHttpRequest")}}</div> + +<p><strong><code>XMLHttpRequestEventTarget.onerror</code></strong> は、エラーの為に {{domxref("XMLHttpRequest")}} トランザクションが失敗した場合に呼び出される関数です。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox notranslate"><em>XMLHttpRequest</em>.onerror = <em>callback</em>;</pre> + +<h3 id="値">値</h3> + +<ul> + <li><code><em>callback</em></code> は、リクエストが失敗した場合に実行される関数です。</li> +</ul> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: js notranslate">var xmlhttp = new XMLHttpRequest(), + method = 'GET', + url = 'https://developer.mozilla.org/'; + +xmlhttp.open(<em>method</em>, <em>url</em>, true); +xmlhttp.onerror = function () { + console.log("** An error occurred during the transaction"); +}; +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-onerror')}}</td> + <td>{{Spec2('XMLHttpRequest')}}</td> + <td>WHATWG living standard</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザーの互換性">ブラウザーの互換性</h2> + + + +<p>{{Compat("api.XMLHttpRequestEventTarget.onerror")}}</p> diff --git a/files/ja/web/api/xmlhttprequest/load_event/index.html b/files/ja/web/api/xmlhttprequest/load_event/index.html new file mode 100644 index 0000000000..89f566c83a --- /dev/null +++ b/files/ja/web/api/xmlhttprequest/load_event/index.html @@ -0,0 +1,62 @@ +--- +title: XMLHttpRequestEventTarget.onload +slug: Web/API/XMLHttpRequest/load_event +tags: + - API + - Property + - Reference + - Web + - XMLHttpRequestEventTarget + - イベントハンドラ +translation_of: Web/API/XMLHttpRequestEventTarget/onload +original_slug: Web/API/XMLHttpRequestEventTarget/onload +--- +<div>{{APIRef("XMLHttpRequest")}}</div> + +<p><strong><code>XMLHttpRequestEventTarget.onload</code></strong> は、 {{domxref("XMLHttpRequest")}} トランザクションが正常に完了した場合に呼び出される関数です。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox notranslate"><em>XMLHttpRequest</em>.onload = <em>callback</em>;</pre> + +<h3 id="値">値</h3> + +<ul> + <li><code><em>callback</em></code> は、リクエストが正常に実行完了した場合に実行される関数です。最初の引数として {{domxref("ProgressEvent")}} オブジェクトを受け取ります。 <em>this</em> の値 (つまり、このコンテキスト) は、この callback が関連付けられている {{domxref("XMLHttpRequest")}} と同じです。</li> +</ul> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: js notranslate">var xmlhttp = new XMLHttpRequest(), + method = 'GET', + url = 'https://developer.mozilla.org/'; + +xmlhttp.open(<em>method</em>, <em>url</em>, true); +xmlhttp.onload = function () { + // Do something with the retrieved data ( found in xmlhttp.response ) +}; +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.onload")}}</p> diff --git a/files/ja/web/api/xmlhttprequest/loadstart_event/index.html b/files/ja/web/api/xmlhttprequest/loadstart_event/index.html new file mode 100644 index 0000000000..55e2add3bf --- /dev/null +++ b/files/ja/web/api/xmlhttprequest/loadstart_event/index.html @@ -0,0 +1,62 @@ +--- +title: XMLHttpRequestEventTarget.onloadstart +slug: Web/API/XMLHttpRequest/loadstart_event +tags: + - API + - Property + - Reference + - Web + - XMLHttpRequestEventTarget + - イベントハンドラ +translation_of: Web/API/XMLHttpRequestEventTarget/onloadstart +original_slug: Web/API/XMLHttpRequestEventTarget/onloadstart +--- +<div>{{APIRef("XMLHttpRequest")}}</div> + +<p><strong><code>XMLHttpRequestEventTarget.onloadstart</code></strong> は、 {{domxref("XMLHttpRequest")}} トランザクションがデータ転送を開始するときに呼び出される関数です。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox notranslate"><em>XMLHttpRequest</em>.onloadstart = <em>callback</em>;</pre> + +<h3 id="値">値</h3> + +<ul> + <li><code><em>callback</em></code> は、トランザクションがデータ転送を開始したときに呼び出される関数です。</li> +</ul> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush: js notranslate">var xmlhttp = new XMLHttpRequest(), + method = 'GET', + url = 'https://developer.mozilla.org/'; + +xmlhttp.open(<em>method</em>, <em>url</em>, true); +xmlhttp.onloadstart = function () { + console.log("Download underway"); +}; +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-onloadstart')}}</td> + <td>{{Spec2('XMLHttpRequest')}}</td> + <td>WHATWG living standard</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザーの互換性">ブラウザーの互換性</h2> + + + +<p>{{Compat("api.XMLHttpRequestEventTarget.onloadstart")}}</p> diff --git a/files/ja/web/api/xmlhttprequest/progress_event/index.html b/files/ja/web/api/xmlhttprequest/progress_event/index.html new file mode 100644 index 0000000000..eb32cc0a22 --- /dev/null +++ b/files/ja/web/api/xmlhttprequest/progress_event/index.html @@ -0,0 +1,74 @@ +--- +title: XMLHttpRequestEventTarget.onprogress +slug: Web/API/XMLHttpRequest/progress_event +tags: + - Property + - Reference + - Web + - XHR + - XMLHttpRequestEventTarget + - イベントハンドラ +translation_of: Web/API/XMLHttpRequestEventTarget/onprogress +original_slug: 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> diff --git a/files/ja/web/api/xmlhttprequest/onreadystatechange/index.md b/files/ja/web/api/xmlhttprequest/readystatechange_event/index.md index d537c8dd1a..7e64081ec6 100644 --- a/files/ja/web/api/xmlhttprequest/onreadystatechange/index.md +++ b/files/ja/web/api/xmlhttprequest/readystatechange_event/index.md @@ -1,6 +1,6 @@ --- title: XMLHttpRequest.onreadystatechange -slug: Web/API/XMLHttpRequest/onreadystatechange +slug: Web/API/XMLHttpRequest/readystatechange_event tags: - API - Event @@ -9,8 +9,9 @@ tags: - リファレンス - XHR - XMLHttpRequest -browser-compat: api.XMLHttpRequest.onreadystatechange translation_of: Web/API/XMLHttpRequest/onreadystatechange +original_slug: Web/API/XMLHttpRequest/onreadystatechange +browser-compat: api.XMLHttpRequest.onreadystatechange --- {{APIRef}} |