aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/xmlhttprequest/using_xmlhttprequest_in_ie6
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/xmlhttprequest/using_xmlhttprequest_in_ie6
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/xmlhttprequest/using_xmlhttprequest_in_ie6')
-rw-r--r--files/ja/web/api/xmlhttprequest/using_xmlhttprequest_in_ie6/index.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/files/ja/web/api/xmlhttprequest/using_xmlhttprequest_in_ie6/index.html b/files/ja/web/api/xmlhttprequest/using_xmlhttprequest_in_ie6/index.html
new file mode 100644
index 0000000000..8d5a05c885
--- /dev/null
+++ b/files/ja/web/api/xmlhttprequest/using_xmlhttprequest_in_ie6/index.html
@@ -0,0 +1,31 @@
+---
+title: Using XMLHttpRequest in IE6
+slug: Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6
+tags:
+ - Web Development
+ - Web Standards
+translation_of: Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6
+---
+<p><a href="/en/DOM/XMLHttpRequest" title="en/DOM/XMLHttpRequest">XMLHttpRequest</a> は、 Microsoft によって Internet Explorer 5.0 で ActiveX control として最初に導入されました。ただし、 IE7 およびその他のブラウザーでは XMLHttpRequest はネイティブ  JavaScript オブジェクトです。</p>
+
+<p>最近のすべてのブラウザーでは、次のコードを使用して新規の XMLHttpRequest オブジェクトを作成できます:</p>
+
+<pre class="brush: js notranslate">var request = new XMLHttpRequest()
+</pre>
+
+<p>ただし、 Internet Explorer 6 以前もサポートする必要がある場合、次のようにコードを拡張する必要があります:</p>
+
+<pre class="brush: js notranslate">if (window.XMLHttpRequest) {
+ //Firefox、 Opera、 IE7、およびその他のブラウザーはネイティブオブジェクトを使用します
+ var request = new XMLHttpRequest();
+} else {
+ //IE 5 および 6 は ActiveX control を使用します
+ var request = new ActiveXObject("Microsoft.XMLHTTP");
+}
+</pre>
+
+<h3 id="関連項目">関連項目</h3>
+
+<ul>
+ <li><a href="/en/DOM/XMLHttpRequest/Using_XMLHttpRequest" title="Using XMLHttpRequest">Using XMLHttpRequest</a></li>
+</ul>