K
Kenneth
I am tryint to view a xml document in Internet Exploer as a ActiveX
object using Javascript but it does not work. I only see the button
but nothing happens when i click it. I am trying to view the
'firstChild' of the xml document.
here is the code;
----------------------------------------------------------------
<html>
<head>
<script language="javascript">
<!--
function alert()
{
var xmldoc, meetingsNode, meetingNode;
xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.load("members.xml");
document.write("works so far");
meetingsNode = xmldoc.documentElement;
document.write("works so far");
meetingNode = meetingsNode.firstChild;
//does not process after this line
document.writeln(meetingNode);
}
//-->
</script>
<title>Read Members.xml</title>
</head>
<body>
<input type="button" name="submit" onclick="alert()" />
</body>
</html>
object using Javascript but it does not work. I only see the button
but nothing happens when i click it. I am trying to view the
'firstChild' of the xml document.
here is the code;
----------------------------------------------------------------
<html>
<head>
<script language="javascript">
<!--
function alert()
{
var xmldoc, meetingsNode, meetingNode;
xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.load("members.xml");
document.write("works so far");
meetingsNode = xmldoc.documentElement;
document.write("works so far");
meetingNode = meetingsNode.firstChild;
//does not process after this line
document.writeln(meetingNode);
}
//-->
</script>
<title>Read Members.xml</title>
</head>
<body>
<input type="button" name="submit" onclick="alert()" />
</body>
</html>