Revision 82
(checked in by haines, 12 years ago)
|
Initial commit
|
Line | |
---|
1 |
<html> |
---|
2 |
<body> |
---|
3 |
<script type="text/javascript"> |
---|
4 |
if (window.XMLHttpRequest) |
---|
5 |
{ |
---|
6 |
xhttp=new XMLHttpRequest(); |
---|
7 |
} |
---|
8 |
else // for IE 5/6 |
---|
9 |
{ |
---|
10 |
xhttp=new ActiveXObject("Microsoft.XMLHTTP"); |
---|
11 |
} |
---|
12 |
|
---|
13 |
// try -- asynchronous is false |
---|
14 |
xhttp.open("GET","ramses_track.kml",false); |
---|
15 |
|
---|
16 |
// if asynchronous is true need the function |
---|
17 |
|
---|
18 |
// set request header before you send the request |
---|
19 |
// xhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); |
---|
20 |
// also might try |
---|
21 |
// xmlhttp.setRequestHeader("Cache-Control", "no-cache") |
---|
22 |
|
---|
23 |
xhttp.send(null); |
---|
24 |
|
---|
25 |
var string = xhttp.responseText; |
---|
26 |
|
---|
27 |
//xmlDoc=xhttp.responseXML; |
---|
28 |
//var string = (new XMLSerializer()).serializeToString(xmlDoc); |
---|
29 |
|
---|
30 |
alert(string); |
---|
31 |
document.write(string); |
---|
32 |
|
---|
33 |
</script> |
---|
34 |
</body> |
---|
35 |
</html> |
---|
36 |
|
---|