Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"invalid procedure call or argument" in javascript

843838Oct 24 2005
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2005
Added on Oct 24 2005
0 comments
145 views