W3C home > Mailing lists > Public > public-html@w3.org > April 2007

Now there is table-element with predetermined quantity of column.

From: Dmitry Turin <html60@narod.ru>
Date: Mon, 23 Apr 2007 09:46:06 +0300
Message-ID: <1926536796.20070423094606@narod.ru>
To: public-html@w3.org

Now there is table-element with predetermined quantity of column.
But sometimes we need to visualize three tables (for example, database tables) as one table:
first table contains names of rows,
second table contains names of columns (this table determine quantity of columns),
third table contains data.
I offer new html-element "table3" for that:

<table3 rows="r.htm"              col="c.htm"              data="d.htm">
<table3 rows="/cgi-bin/a.cgi?q=r" col="/cgi-bin/a.cgi?q=c" data="/cgi-bin/a.cgi?q=d">

Content of "r.htm":

<th id=1>RowName1</th>
<th id=2>RowName2</th>
<th id=3>RowName3</th>

Content of "c.htm":

<th id=10>ColName1</th>
<th id=20>ColName2</th>
<th id=30>ColName3</th>

Content of "d.htm":

<td row=1 col=10>Data11</td>
<td row=1 col=20>Data12</td>
<td row=1 col=30>Data13</td>
<td row=2 col=10>Data21</td>
<td row=2 col=20>Data22</td>
<td row=2 col=30>Data23</td>
<td row=3 col=10>Data31</td>
<td row=3 col=20>Data32</td>
<td row=3 col=30>Data33</td>

If some row or column don't exist for cell of data,
then cell of data is throwed out.

---
P.S.
Requests in database for "r.htm" and "c.htm":
 select '<th id='  + field_id + '>' + field_name + '</th>' from ...
Request for "d.htm":
 select '<td row=' + field_i + ' col=' + field_j + '>' + field_data + '</td>' from ...

 
Dmitry Turin
http://html60.chat.ru
http://sql40.chat.ru
Received on Monday, 23 April 2007 06:43:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:53 GMT