Hi at all,
this is the page :
<html>
<head>
<title>bug</title>
<script src="jquery.js" type="text/javascript"></script>
<script>
function getTestXml(str) {
if (typeof DOMParser == "undefined") {
DOMParser = function () {}
DOMParser.prototype.parseFromString = function
(str, contentType) {
if (typeof ActiveXObject != "undefined") {
var d = new
ActiveXObject("MSXML.DomDocument");
d.loadXML(str);
return d;
} else if (typeof XMLHttpRequest !=
"undefined") {
var req = new XMLHttpRequest;
req.open("GET", "data:" + (contentType
|| "application/xml") +
";charset=utf-8," + encodeURIComponent(str),
false);
if (req.overrideMimeType) {
req.overrideMimeType(contentType);
}
req.send(null);
return req.responseXML;
}
}
}
return (new DOMParser()).parseFromString(str,
"text/xml");
}
//jquery test
$(document).ready(function() {
var xml = getTestXml('<?xml
version="1.0"?><week><day>monday</day><day>sunday</day></week>');
$("day", xml).each(function(i){
$("p:last").after('<p>'+ $(this).text()
+ '</p>');
});
});
</script>
</head>
<body >
<p id="start">week : </p>
</body>
</html>
naturally I'm interesting about behaviour of the code under "jquery test".
It works perfectly on FireFox but an error occurred on Internet
explorer = (method unsupported by object) on "text()".
can you help me ?
thanks.
--
My personal site www.totoworld.org
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/