0x80004003 (NS ERROR INVALID POINTER)
Bonjour,
J'essaie ceci :
Code:
1 2 3 4 5 6
|
var thisNode = document.getElementById(nodeId);
while (thisNode.hasChildNodes){
thisNode.removeChild(thisNode.firstChild);
} |
et Firebug me donne :
Citation:
uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.removeChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame ::
http://localhost:8080/v2/js/ici/evt.js :: removeAllChilds :: line 260" data: no]
le scripte plante et plus rien en se passe ... Quelqu'un a une idée de l'origine de ce pb ? J'utilise FF v 3.0.15.
Merci !!