PDA

View Full Version : error in xml transforming



s_sameer
09-20-2005, 03:15 PM
hi i am having following code in server side jscript in asp pahge

i am chking wheter my 1 of variable is containing word STATIC the it should not go to database and display xsl as it is else fetch the xml and transform it but incase of STATIC case its giving me error as
======

Microsoft JScript runtime (0x800A01B6)
Object doesn't support this property or method
/EPSUI/asp/epsmain2.asp, line 37

======
var re = /STATIC/
if (re.test(webAction))
{
var xml = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
xml.LoadXML=String("<centerData><title1>EPS</title1></centerData>"); --line 37
}
else
{
//Response.Write("static is not there");
var sender = sendFormRequest(GetTheServletName+"&"+xmlData, paramList );
var xml = sender.responseXML;

}


--------------------------------
what could be the error
Thanx
sameer

Twey
09-20-2005, 03:42 PM
Numbering your lines would be helpful, as you didn't include the whole page. Which line is #37?