Microsoft VBScript runtime error '800a01a8' Object required
-
Dear All, I have a combination of classic ASP page and asp.net pages in the application. I am getting this error "Microsoft VBScript runtime error '800a01a8' Object required" on a asp page. The error is coming from this code: sRawHtml = Request("h_RawHTML") Set xd = Server.CreateObject("MSXML2.DOMDocument") Call xd.loadXML(CStr(sEncrypteXML)) set xel = xd.selectSingleNode("//WebSiteInformation") xel.setAttribute "Site_HTML", CStr(sRawHTML) Please tell me if I have written something wrong. Thanks, SP
-
Dear All, I have a combination of classic ASP page and asp.net pages in the application. I am getting this error "Microsoft VBScript runtime error '800a01a8' Object required" on a asp page. The error is coming from this code: sRawHtml = Request("h_RawHTML") Set xd = Server.CreateObject("MSXML2.DOMDocument") Call xd.loadXML(CStr(sEncrypteXML)) set xel = xd.selectSingleNode("//WebSiteInformation") xel.setAttribute "Site_HTML", CStr(sRawHTML) Please tell me if I have written something wrong. Thanks, SP
Which line gets the error ? Is the MSXML2.DOMDocument class present ( I think it's part of IE, so it should be, but that seems to me to be what the problem is ).
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Which line gets the error ? Is the MSXML2.DOMDocument class present ( I think it's part of IE, so it should be, but that seems to me to be what the problem is ).
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Hi, the error is on the last line (xel.setAttribute "Site_HTML", CStr(sRawHTML)). this is working for some HTML code passing thru sRawHTML; and not working for some other HTMLs
-
Hi, the error is on the last line (xel.setAttribute "Site_HTML", CStr(sRawHTML)). this is working for some HTML code passing thru sRawHTML; and not working for some other HTMLs
And is it possible you could post examples of working and not-working HTML? Or is it secret?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
And is it possible you could post examples of working and not-working HTML? Or is it secret?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
This one is working properly <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <table border="1" width="600" id="table1"> <tr> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> <td>8</td> <td>9</td> </tr> <tr> <td>10</td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </body> </html>
-
And is it possible you could post examples of working and not-working HTML? Or is it secret?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
...basically this one is giving the error... <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <table border="0" width="680" bordercolor="#008080" id="table1" bgcolor="#33CCCC"> <tr> <td> </td> <td colspan="8"> <p align="center"> <font color="#FFFFFF"> Should extend up to touch bottom of Search Section </font> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="8"> <p align="center"> <font size="4">Template Test</font> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="8"> <p align="center"> <font size="2">980 pixels wide - variable length</font> </td> <td> </td> </tr> <tr> <td colspan="8"> <font color="#FFFFFF">< Should extend left to be flush with margin of banner and Search Section</font></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td colspan="8"> <p align="right"> <font color="#FFFFFF">Should extend right to be flush with margin of banner and Search Section > </font> </td> </tr> <tr> <td> </td> <td colspan="8"> <p align="center"> &
-
Hi, the error is on the last line (xel.setAttribute "Site_HTML", CStr(sRawHTML)). this is working for some HTML code passing thru sRawHTML; and not working for some other HTMLs
OK, well, that's easy. xel is sometimes null. I notice you don't write code to check if it is.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
...basically this one is giving the error... <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> <table border="0" width="680" bordercolor="#008080" id="table1" bgcolor="#33CCCC"> <tr> <td> </td> <td colspan="8"> <p align="center"> <font color="#FFFFFF"> Should extend up to touch bottom of Search Section </font> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="8"> <p align="center"> <font size="4">Template Test</font> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="8"> <p align="center"> <font size="2">980 pixels wide - variable length</font> </td> <td> </td> </tr> <tr> <td colspan="8"> <font color="#FFFFFF">< Should extend left to be flush with margin of banner and Search Section</font></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td colspan="8"> <p align="right"> <font color="#FFFFFF">Should extend right to be flush with margin of banner and Search Section > </font> </td> </tr> <tr> <td> </td> <td colspan="8"> <p align="center"> &
This one is not valid XML.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.