Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / September 2006



Tip: Looking for answers? Try searching our database.

How to use Table object in javascript?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Saurabh - 30 Sep 2006 12:19 GMT
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 - 30 Sep 2006 12:27 GMT
> 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/DOM:table#HTML_Table_Element_Interface

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.

Signature

Rob

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.