hello ,
<html>
<head>
<script language="javascript">
function display(){
var xmldoc= new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async="false";
xmldoc.load("x1.xml");
xmlobj=xmldoc.documentElement;
var i,j;
for(i=0;i<xmlobj.childNodes.length;i++)
{
alert("in1");
alert(xmlobj.childNodes(i).getAttribute("name"));
alert("in1111");
for(j=0;j<xmlobj.childNodes(i).childNodes.length;j++)
{
alert("in2");
// document.write(xmlobj.childNodes(i).childNodes(j).getAttribute("name"));
// document.write(xmlobj.childNodes(i).childNodes(j).getAttribute("link"));
}
}
alert("hello");
setTimeout("display()",10000);
}
</script>
</head>
<body>
<script language="javascript">
display();
</script>
</body>
</html>
this is my code,
in the display() function,
if instead of alert i am trying to use document.write, then i am getting an
alert.
Can any one suggest me a solution and the way document.write works.
cheers!!!


