Hi all,
Could someone explain to me why this code,
works fine, but as soon as I try the same code in javascript asp,
it returns the following error,
Microsoft JScript runtime error '800a01b6'
Object doesn't support this property or method
/site_asp/test.asp, line 12
--------------------------------
is this something that javacsript asp just can't do ?
Thanks for reading.
Could someone explain to me why this code,
Code:
<%
text="<note>"
text=text & "<to>Tove</to>"
text=text & "<from>Jani</from>"
text=text & "<heading>Reminder</heading>"
text=text & "<body>Don't forget me this weekend!</body>"
text=text & "</note>"
set xmlDoc=Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.loadXML(text)
xmlDoc.Save(Server.MapPath("test.xml"))
%>
Code:
<%@LANGUAGE="JavaScript"%>
<%
text="<note>";
text=text + "<to>Tove</to>";
text=text + "<from>Jani</from>";
text=text + "<heading>Reminder</heading>";
text=text + "<body>Don't forget me this weekend!</body>";
text=text + "</note>";
var xml=Server.CreateObject("Microsoft.XMLDOM");
xml.async = false;
xml.LoadXml("text");
xml.Save(Server.MapPath("test.xml"));
%>
it returns the following error,
Microsoft JScript runtime error '800a01b6'
Object doesn't support this property or method
/site_asp/test.asp, line 12
--------------------------------
is this something that javacsript asp just can't do ?
Thanks for reading.