IE7.0 does not make [object XMLDocument]?

Discussion in 'JavaScript' started by pujo, Mar 18, 2008.

  1. #1
    The problem is on page www.orkesterdomzale.org

    A javascript is used to display the next rehearsal and the next concert in the right sidebar.

    While Firefox displays it, IE7.0 declares error:
    'x[...]' is null or not an object.

    I think the error happens in the line 27 of the www.orkesterdomzale.org/dogodki1naslednji.js script:
    if (x.getElementsByTagName("vrsta")[0].childNodes[0].nodeValue=="vaja")

    I copy-pasted the javascript from www.w3schools.com/xml/xml_to_html.asp and only changed the name of the file in the first part of the script. Of course, the script there works correctly in IE.

    Thanks in advance for useful suggestions!

    pujo
     
    pujo, Mar 18, 2008 IP