W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2002

DOM - tables

From: Van Den Bemt, Patrick (P.) <pvanden2@ford.com>
Date: Wed, 11 Sep 2002 05:34:34 -0400
Message-ID: <86308237A525D41183FB00D0B73EA652122729C9@war00027.warley.ford.com>
To: www-dom@w3.org

Hi there,

<SCRIPT LANGUAGE="JavaScript1.2">
function MainFunction() {
<BODY onLoad="MainFunction()">
<TABLE ID="Kalender" BORDER="1" WIDTH="100%">
   <TD width="100%" COLSPAN=7>Augustus 2002</TD>
    <TD WIDTH="50%">TestCell_1</TD>
    <TD WIDTH="50%">TestCell_2</TD>

If I Want to dynamically extend the given table "Kalender" with additional rows via the MainFunction script I cannot do this by simply using document.writeln("<TR><TD>") etc.
Can I access the table via the DOM and then have a kind of method to add a row and set the properties ?? The DOM is dealing with Window, Document etc. but I do not find for instance a Table object.

Has anyone got any suggestions to help me solving this issue ?

Patrick van den Bemt 
Received on Wednesday, 11 September 2002 05:34:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:10 UTC