xml.documentElement.childNodes.item(0).text请指教100分
ji_gr 2002-12-27 03:46:27 ---------------不知错在那里------------请指教,谢谢
<html>
<head>
<title>my xmldoc test</title>
<script language="javascript">
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.load("data.asp");
xml.async = "false";
function onLoadHandler()
{
setInterval("get()",1000);
setInterval("display()",1000);
}
function get()
{
xml.load("data.asp");
}
function display()
{
document.write
(xml.documentElement.childNodes.item(0).text)
}
</script>
</head>
<body onload="onLoadHandler();">
</body>
</html>
-------总是出错误,请帮忙,谢谢
data.asp:------------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<note>
<first><%response.write second(now())%></first>
</note>