3 <title>GET test
</title>
4 <style type=
"text/css">
7 border: 1px solid black
;
18 <script type=
"text/javascript">
19 var p
= new XMLHttpRequest();
23 document
.getElementById("id1").firstChild
.nodeValue
= p
.responseText
;
25 var s
= new XMLSerializer();
26 var d
= p
.responseXML
;
27 var str
= s
.serializeToString(d
);
28 document
.getElementById("id2").firstChild
.nodeValue
= str
;
30 document
.getElementById("id3").firstChild
.nodeValue
= p
.getAllResponseHeaders();
31 document
.getElementById("id4").firstChild
.nodeValue
= p
.status
;
32 document
.getElementById("id5").firstChild
.nodeValue
= p
.statusText
;
33 document
.getElementById("id6").firstChild
.nodeValue
= p
.readyState
;
34 var eventProperties
= "";
36 eventProperties
+= prop
+ " : '" + e
[prop
] + "'\n";
38 document
.getElementById("id7").firstChild
.nodeValue
=
39 "Event object: " + e
+ "\n" +
40 "Event properties:\n" + eventProperties
;
44 //netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
45 p
.open("GET", "display.html");
52 <div class=
"box"><span class=
"boxheader">responseText
</span>
53 <pre id=
"id1">@@No result@@
</pre>
55 <div class=
"box"><span class=
"boxheader">responseXML serialized
</span>
56 <pre id=
"id2">@@No result@@
</pre>
58 <div class=
"box"><span class=
"boxheader">getAllResponseHeaders()
</span>
59 <pre id=
"id3">@@No result@@
</pre>
61 <div class=
"box"><span class=
"boxheader">status
</span>
62 <pre id=
"id4">@@No result@@
</pre>
64 <div class=
"box"><span class=
"boxheader">statusText
</span>
65 <pre id=
"id5">@@No result@@
</pre>
67 <div class=
"box"><span class=
"boxheader">readyState
</span>
68 <pre id=
"id6">@@No result@@
</pre>
70 <div class=
"box"><span class=
"boxheader">Event information
</span>
71 <pre id=
"id7">@@No result@@
</pre>