From c04ddc269bfffa89e31578ae74d57f109e831af4 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 30 Jan 2022 00:16:51 +0900 Subject: XMLHttpRequest のイベントの記事を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/xmlhttprequest/timeout_event/index.html | 81 ---------------------- .../web/api/xmlhttprequest/timeout_event/index.md | 81 ++++++++++++++++++++++ 2 files changed, 81 insertions(+), 81 deletions(-) delete mode 100644 files/ja/web/api/xmlhttprequest/timeout_event/index.html create mode 100644 files/ja/web/api/xmlhttprequest/timeout_event/index.md (limited to 'files/ja/web/api/xmlhttprequest/timeout_event') diff --git a/files/ja/web/api/xmlhttprequest/timeout_event/index.html b/files/ja/web/api/xmlhttprequest/timeout_event/index.html deleted file mode 100644 index d9cea5662e..0000000000 --- a/files/ja/web/api/xmlhttprequest/timeout_event/index.html +++ /dev/null @@ -1,81 +0,0 @@ ---- -title: 'XMLHttp​Request: timeout イベント' -slug: Web/API/XMLHttpRequest/timeout_event -tags: - - Reference - - XHR - - XMLHttpRequest - - timeout - - イベント - - タイムアウト -translation_of: Web/API/XMLHttpRequest/timeout_event ---- -
{{APIRef}}
- -

timeout イベントは、設定された時間が経過し進捗が終了すると発生します。

- - - - - - - - - - - - - - - - - - - - -
バブリングなし
キャンセル不可
インターフェイス{{domxref("ProgressEvent")}}
イベントハンドラープロパティ{{domxref("XMLHttpRequestEventTarget.ontimeout")}}
- -

- -
const client = new XMLHttpRequest();
-client.open('GET', 'http://www.example.org/example.txt');
-client.ontimeout = () => {
-    console.error('Timeout!!')
-};
-
-client.send();
- -

イベントハンドラーは {{domxref("EventTarget/addEventListener", "addEventListener()")}} メソッドを使用して設定することもできます。

- -
client.addEventListener('timeout', () => {
-    console.error("Timeout!!");
-});
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('XMLHttpRequest', '#event-xhr-timeout', 'timeout event')}}{{Spec2('XMLHttpRequest')}} 
- -

ブラウザーの対応

- -

{{Compat("api.XMLHttpRequest.timeout_event")}}

- -

関連情報

- - diff --git a/files/ja/web/api/xmlhttprequest/timeout_event/index.md b/files/ja/web/api/xmlhttprequest/timeout_event/index.md new file mode 100644 index 0000000000..d9cea5662e --- /dev/null +++ b/files/ja/web/api/xmlhttprequest/timeout_event/index.md @@ -0,0 +1,81 @@ +--- +title: 'XMLHttp​Request: timeout イベント' +slug: Web/API/XMLHttpRequest/timeout_event +tags: + - Reference + - XHR + - XMLHttpRequest + - timeout + - イベント + - タイムアウト +translation_of: Web/API/XMLHttpRequest/timeout_event +--- +
{{APIRef}}
+ +

timeout イベントは、設定された時間が経過し進捗が終了すると発生します。

+ + + + + + + + + + + + + + + + + + + + +
バブリングなし
キャンセル不可
インターフェイス{{domxref("ProgressEvent")}}
イベントハンドラープロパティ{{domxref("XMLHttpRequestEventTarget.ontimeout")}}
+ +

+ +
const client = new XMLHttpRequest();
+client.open('GET', 'http://www.example.org/example.txt');
+client.ontimeout = () => {
+    console.error('Timeout!!')
+};
+
+client.send();
+ +

イベントハンドラーは {{domxref("EventTarget/addEventListener", "addEventListener()")}} メソッドを使用して設定することもできます。

+ +
client.addEventListener('timeout', () => {
+    console.error("Timeout!!");
+});
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('XMLHttpRequest', '#event-xhr-timeout', 'timeout event')}}{{Spec2('XMLHttpRequest')}} 
+ +

ブラウザーの対応

+ +

{{Compat("api.XMLHttpRequest.timeout_event")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf