| Article: |
Dynamic Content with DOM-2 (Part I of II) | |
| Subject: | Inserting Nodes without pre-existing table | |
| Date: | 2002-04-29 18:32:44 | |
| From: | madmiarde | |
|
Your article was great! In stepping through some of your examples, specifically the "Inserting Nodes in a Sequence" portion, I can't figure out how you would do it if the table didn't exist already. Your example started with a table, row and three data cells. I can duplicate this without problem. When I try to start with an empty table, it will not work. Here's what I start with:
|
||
Showing messages 1 through 2 of 2.
-
Inserting Nodes without pre-existing table
2002-06-13 07:13:38 iq_soft [View]
-
Inserting Nodes without pre-existing table
2002-06-14 12:53:19 madmiarde [View]
Thanks for the reply! You were correct - the only thing I was missing was the tbody element. I found it in an article on Microsoft's site.
Thanks again!



within your table. Try this:
<table>
<tbody id="table1">
</tbody>
</table>
and the rest of your code should work....
at least it works for me (IE, NS, Mozilla)