jammer1221
Programmer
Hi All,
I am receiving the error "Microsoft JScript runtime error '800a01a8'" inside of this script.
Error Message:
Script:
There is output. The error comes after the expected output. Any advice as to what causes this error and how to fix it would be greatly appreciated!
Let me know if you need any more info.
Thanks,
Matt
I am receiving the error "Microsoft JScript runtime error '800a01a8'" inside of this script.
Error Message:
Code:
Microsoft JScript runtime error '800a01a8'
Object required
/aspxml.asp, line 16
Script:
Code:
<%@ Language=JScript%>
<%Server.ScriptTimeout=21478836%>
<%Response.Buffer=false%>
<%
var objXMLDoc = Server.CreateObject("MSXML2.DOMDocument");
objXMLDoc.async = false;
objXMLDoc.load(Server.MapPath("/menu/menu.xml"));
var xmlQuery = "//node[@data='/curriculumdevelopment/elementary/open-wide.html']";
var docHeadlines = objXMLDoc.documentElement.selectSingleNode(xmlQuery);
while (typeof(docHeadlines.parentNode)=="object") {
for (x=0;x<docHeadlines.attributes.length;x++) {//line 16
if (docHeadlines.attributes(x).name=="label") {
if (docHeadlines.attributes(x).value!="") Response.Write(docHeadlines.attributes(x).value+" > ");
docHeadlines=docHeadlines.parentNode;
break;
}
}
}
%>
There is output. The error comes after the expected output. Any advice as to what causes this error and how to fix it would be greatly appreciated!
Let me know if you need any more info.
Thanks,
Matt