File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes creating tables with DOM / IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "creating tables with DOM / IE" Watch "creating tables with DOM / IE" New topic

creating tables with DOM / IE

Karen Nelson
Ranch Hand

Joined: Aug 19, 2005
Posts: 57
I am trying to create tables using DOM scripting, and my code works fine in netscape and firefox, but not IE. The code below is the simplest I can get it.

I put the tbody statements in because one google search turned this up, but it didn't help.

Thanks, Karen.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

Wouldn't that be tab.appendChild(tbody); ?

[My Blog]
All roads lead to JavaRanch
Karen Nelson
Ranch Hand

Joined: Aug 19, 2005
Posts: 57
arrrgh - yes, and now it does work. Thank you!
I agree. Here's the link:
subject: creating tables with DOM / IE
Similar Threads
How can I struts tag library with in javascript ?
Changing focus to dynamic text box
Create dynamic input text type in a table
building a html table, ID
creating tables in IE7 - document.createElement("table")