Results 1 to 2 of 2

Thread: error in xml transforming

  1. #1
    Join Date
    Sep 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default error in xml transforming

    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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Numbering your lines would be helpful, as you didn't include the whole page. Which line is #37?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •