No problem, I see that your IE7 supports response XML, my example:
serverside, simple XML
(
http://aka-fotos.de/research/uniajax/responseXml.php), with correct
Content-Type:
<?
header('Content-Type: text/xml');
echo '<?xml version="1.0" encoding="utf-8"?'.'>';
?><response>hello</response>
And my client side test script
(
http://aka-fotos.de/research/uniajax/_index.php):
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
....
<script type="text/javascript"
src="../prototype/js/prototype.js"></script>
<script type="text/javascript">
inspect = function(object) {
...
}
</script>
....
</head>
<body style="font-size:12px;font-family:Verdana;">
<script type="text/javascript">
onload = function() {
request = function() {
var ajax = new XMLHttpRequest();
$('res').innerHTML = 'Request Object: '+ajax+'<br><br>';
ajax.onreadystatechange = function() {
// print the results:
if (ajax.readyState == 4) {
$('res').innerHTML += 'responseText:
'+ajax.responseText.escapeHTML();
$('res').innerHTML += '<br><br>Inspected responseXML:
'+inspect(ajax.responseXML);
$('res').innerHTML += '<br><br>responseXML.firstChild.nodeName:
'+ajax.responseXML.firstChild.nodeName;
}
}
ajax.open('get', 'responseXml.php');
ajax.send(null);
}
request();
}
</script>
<!--INPUT: <input id="input" onkeyup="request(this.value);"
style="border-width:1px;border-color:silver;border-style:solid;"/><br>-->
<div id="params"
style="font-size:12px;font-family:Verdana;border-width:1px;border-color:silver;border-style:solid;padding:10px;">INFORMATION
TO LAST REQUEST:<br> </div>
<div id="res"
style="font-size:9px;font-family:Verdana;border-width:1px;border-color:silver;border-style:solid;padding:10px;">RESULT:<br><br></div>
</body>
</html>
You find the files on my server, please test it and tell me about the
results. Of course I have XMLHttpRequest switched on in IE7. In Firefox
you see a big list (inspected XML object), in IE7 I see nothing.
Thank you for your help!