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,

<HTML>
<HEAD>
<TITLE>test</TITLE>
<SCRIPT LANGUAGE="JavaScript1.2">
function MainFunction() {
	document.open();
	document.writeln();
	document.close();
}
</SCRIPT>
</HEAD>
<BODY onLoad="MainFunction()">
<TABLE ID="Kalender" BORDER="1" WIDTH="100%">
  <TR>
   <TD width="100%" COLSPAN=7>Augustus 2002</TD>
  </TR>
  <TR>
    <TD WIDTH="50%">TestCell_1</TD>
    <TD WIDTH="50%">TestCell_2</TD>
  </TR>
</TABLE>
</BODY>
</HTML>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT