unable to append child in IE8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GuruPrasadBytes
    New Member
    • Nov 2009
    • 5

    unable to append child in IE8

    I have two objects and their types listed below in javascript.

    1st one is parentNode type IXMLDOMElement
    2nd is child Node type IXMLDOMElement

    parentNode.xml = "<Security/>"
    childNode.xml = "<Condition id="Custom1" name="Custom1" Selected="T">Co verage Any (New_Zealand) AND Program_Type Any (program1) AND Agreement_Type Any (Agreement1) AND Customer_Type Any (Customer1)</Condition>"

    after building this childNode. when i try to append to parentNode with below code

    parentNode.appe ndChild(childNo de);

    error is geting during execution this line. error message is
    "The parameter is incorrect."

    and its working fine in IE8.

    fun thing is last evenining this was working fine :) . but when i started checking today morning with out changing any code... again it is give same error. :(
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I've never heard of IXMLDOMElement before. I looked it up and it seems like the IXMLDOMElement is a COM object (an ActiveX control). This means that it can only work in IE.

    What are you trying to do?
    Does your application have a requirement that states that it should run in all web browsers? If so then you should consider using something else.

    -Frinny

    Comment

    Working...