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

RE: DOM - tables

From: Van Den Bemt, Patrick (P.) <pvanden2@ford.com>
Date: Thu, 12 Sep 2002 09:38:10 -0400
Message-ID: <86308237A525D41183FB00D0B73EA652122729DA@war00027.warley.ford.com>
To: "'Boris Zbarsky'" <bzbarsky@MIT.EDU>
Cc: www-dom@w3.org

Boris,

Thanks for the info, I am still a dummy to the DOM. I found the insertRow() method in the W3C DOM Level2 HTML spec.
However now I have got a big questionmark. How do I implement this ? The W3C spec does not give examples.
Let's assume I want to add a table with 3 rows and 2 columns using JavaScript on the following dummy HTML page
	<HTML>
	<HEAD>
	<SCRIPT LANGUAGE="JavaScript1.2">
	</SCRIPT>
	</HEAD>
	<BODY>
	This is a page to learn all about adding a table using the DOM
	</BODY>
	</HTML>

How do I start ?

Patrick.

-----Original Message-----
From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU]
Sent: 11 September 2002 11:50
To: Van Den Bemt, Patrick (P.)
Cc: www-dom@w3.org
Subject: Re: DOM - tables


> The DOM is dealing with Window, Document etc. but
> I do not find for instance a Table object.

http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-64060425

note the insertRow() method.

Boris
-- 
"Windows is packaged with Solitaire (ooh)! Linux is 
distributed with Doom ... you can have your deck of
cards, I'll take a chainsaw!" 

                  --- paraphrase from comp.os.linux.advocacy
Received on Thursday, 12 September 2002 09:38:19 GMT

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