Re: removeNode problem





Hi,
I am using removeNode() to remove a table (tbody) from the document
like this:


the_table = document.getElementById(the_table_id);
the_table.removeNode(true);


However when I access the length property like this:


the_div = document.getElementById(my_div_id);
the_div.getElementsByTagName("tbody").length


....I seem to get a value that does not reflect the fact that the tbody
node has been removed. This is causing me big problems!


I was wondering if anyone could help?

.




... A recent message here about <tbody> caused me to look it up in O'Reilly. ...JohnW-Mpls...Prev by Date: ...
(alt.html)
  • Inserting Tables in IE 6 using W3C DOM techniques.
    ... I had a problem in IE 6 when trying to insert a table using W3C DOM ... techniques. ... and then the tbody into the table. ... Prev by Date: ...
    (comp.lang.javascript)
  • Relevant Pages

    • removeNode problem
      ... I am using removeNode() to remove a table from the document ... ....I seem to get a value that does not reflect the fact that the tbody ... This is causing me big problems! ... Prev by Date: ...
      (comp.lang.javascript)
    • Re: removeNode problem
      ... I am using removeNode() to remove a table (tbody) from the document ... must have one or more tbody elements. ... var theDiv = document.getElementById; alert('tbodies before: ...
      (comp.lang.javascript)
    • Re: Adding rows to table inside a form for input
      ... Ted Byers wrote: ... The default for type of the 'button' element is 'submit' and that way your form is submitted each you click the button, causing a reload of the page as the action of the form is ''. ...
      (comp.lang.javascript)