Hi, i’m trying to use removeChild to remove a list item from an un-ordered list, and i’m getting the following error on the line where I actually perform the removeChild:
[B]Error: uncaught exception: [Exception… “Could not convert JavaScript argument arg 0 [nsIDOMHTMLUListElement.removeChild]” nsresult: “0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)” location: “JS frame :: file:///V:/prototype/20_04_06_Drag_Drop_Left_And_Right_Dev.htm# :: updateLists :: line 89” data: no]
Here’s the offending section of code, though i’m not posting the entire function as it’s pretty big. Basically “remove” is an array of id’s that I want to remove from the document. The id’s themselves are directly on the list items.
for (i=0; i<remove.length; i++) {
stringOfID = ‘li’ + remove[i]
fromList.removeChild(stringOfID)
}
Any ideas on how I can get past this hurdle would be much appreciated. I’m stumped…