Connecting Tech Pros Worldwide Forums | Help | Site Map

How to use Table object in javascript?

Saurabh
Guest
 
Posts: n/a
#1: Sep 30 '06
i want to create a table dynamically. Right now what i am using is a
string harcoded with the table structure with "<TD>"+values i want to
fill in the table dynamically.
and then padd this string to divID.innerHTML;
Is there a table object in javascript?
if there is How to use it????




RobG
Guest
 
Posts: n/a
#2: Sep 30 '06

re: How to use Table object in javascript?



Saurabh wrote:
Quote:
i want to create a table dynamically. Right now what i am using is a
string harcoded with the table structure with "<TD>"+values i want to
fill in the table dynamically.
and then padd this string to divID.innerHTML;
Is there a table object in javascript?
if there is How to use it????
There is a table interface as part of the W3C DOM, browse here:

<UR:
http://developer.mozilla.org/en/docs...ment_Interface
Quote:
>
Don't use innerHTML to modify tables, you can use it to write an entire
table, or the contents of a cell, but not parts of the table.


--
Rob

Closed Thread