Hi,
I am trying to retrieve some information from a XML file, throught java script using DOM, i am retrieving the info with regard to the id of the source element.
Functionality wise, its exactly doing what i wanted to do,
but its throwing a error in status bar of my IE 6.0.
Invalid Procedure call or argument..
and my code follows as this
nodeId=xmlDoc.getElementsByTagName(event.srcElement.id); // this line is where the error is poinitng to.
for(var node=0; node<nodeId.length; node++)
{
x.innerHTML = '';
x.innerHTML += "<font color=\"red\">" + nodeId.item(node).firstChild.nodeValue +"</font>";
}
Thanks in advance,
Regards,
Kesavan