[crossposting to comp.infosystems.
www.authoring.html
followup to comp.infosystems.
www.authoring.html]
since my reply doesn't have to do with javascript
but with web authoring and HTML standards
expertware at libero it wrote in message news:11*********************@g44g2000cwa.googlegro ups.com...
Dear Stephane,
I have revised the web export routine for Datatime. Here is a new
sample output:
http://cam70.sta.uniroma1.it/Technic...ansparency.htm
Mamma mia!!!!
what are you doing!
tabular data doesn't mean a table for each field
please excuse me for being a stronzo, but I just have to cry out!
Think about somebody who is vision impaired and needs the data
to be read out by the computer.
the following does pretty much what you show (and does it in a tabular way):
<html>
<head>
<title>Report generated: by hand by robi</title>
<style type="text/css" media="screen">
..c2{background:#f0f8ff;border-width:1px;border-style:inset;
color:#000000;text-align:center;font-family:"Courier New";
font-size:11px;}
..c3{background:#f0fff0;border-width:1px;border-style:outset;
color:#008000;text-align:left;font-family:"Tahoma";
font-size:11px;font-weight:bold;}
..c4{background:#fffff0;border-width:1px;border-style:outset;
color:#000000;text-align:left;font-family:"Tahoma";
font-size:11px;font-weight:bold;}
..c5{background:#008000;border-width:1px;border-style:outset;
color:#ffffff;text-align:center;font-family:"Tahoma";
font-size:11px;font-weight:bold;}
..c6{background:#006400;border-width:1px;border-style:outset;
color:#ffffff;text-align:center;font-family:"Tahoma";
font-size:11px;font-weight:bold;}
..c7{background:#1e90ff;border-width:1px;border-style:inset;
color:#ffffff;text-align:center;font-family:"Tahoma";
font-size:11px;font-weight:bold;}
..c8{background:#4169e1;border-width:1px;border-style:inset;
color:#ffffff;text-align:center;font-family:"Tahoma";
font-size:11px;font-weight:bold;}
..c9{background:#ffffe0;border-width:1px;border-style:inset;
color:#000000;text-align:center;font-family:"Courier New";
font-size:11px;font-weight:bold;}
..c10{background:#ffe4e1;border-width:1px;border-style:inset;
color:#0000ff;text-align:center;font-family:"Courier New";
font-size:11px;}
..c11{background:#90ee90;border-width:1px;border-style:none;
color:#ff0000;text-align:center;font-family:"Tahoma";
font-size:15px;font-weight:bold;}
</style>
</head>
<body>
<table border="0" width="573">
<tr height="19">
<th colspan="5" class="c11">Argentina</td>
</tr>
<tr height="35">
<th class="c5" width="281" valign=middle>SHIPADDRESS</td>
<th class="c6" width="95" valign=middle>SHIPCITY</td>
<th class="c7" valign=middle>ORDERID </td>
<th class="c8" valign=middle>FREIGHT </td>
<th class="c7" valign=middle>SHIPVIA </td>
</tr>
<tr height="21">
<td class="c4">Av. del Libertador 900</td>
<td class="c4">Buenos Aires</td>
<td class="c2">5</td>
<td class="c2">5</td>
<td class="c2">5</td>
</tr>
<tr height="21">
<td class="c3">Cerrito 333</td>
<td class="c3">Buenos Aires</td>
<td class="c10">6</td>
<td class="c10">6</td>
<td class="c10">6</td>
</tr>
<tr height="21">
<td class="c4">Ing. Gustavo Moncada 8585</td>
<td class="c4">Buenos Aires</td>
<td class="c2">5</td>
<td class="c2">5</td>
<td class="c2">5</td>
</tr>
<tr height="20">
<td></td>
<td></td>
<td class="c9">16</td>
<td class="c9">16</td>
<td class="c9">16</td>
</tr>
</table>
</body>
</html>
the above table could also be defined as follows:
<table border="0" width="573">
<thead>
<tr height="19">
<th colspan="5" class="c11">Argentina</td>
</tr>
<tr height="35">
<th class="c5" width="281" valign=middle>SHIPADDRESS</td>
<th class="c6" width="95" valign=middle>SHIPCITY</td>
<th class="c7" valign=middle>ORDERID </td>
<th class="c8" valign=middle>FREIGHT </td>
<th class="c7" valign=middle>SHIPVIA </td>
</tr>
</thead>
<tfoot>
<tr height="20">
<td></td>
<td></td>
<td class="c9">16</td>
<td class="c9">16</td>
<td class="c9">16</td>
</tr>
</tfoot>
<tbody>
<tr height="21">
<td class="c4">Av. del Libertador 900</td>
<td class="c4">Buenos Aires</td>
<td class="c2">5</td>
<td class="c2">5</td>
<td class="c2">5</td>
</tr>
<tr height="21">
<td class="c3">Cerrito 333</td>
<td class="c3">Buenos Aires</td>
<td class="c10">6</td>
<td class="c10">6</td>
<td class="c10">6</td>
</tr>
<tr height="21">
<td class="c4">Ing. Gustavo Moncada 8585</td>
<td class="c4">Buenos Aires</td>
<td class="c2">5</td>
<td class="c2">5</td>
<td class="c2">5</td>
</tr>
</tbody>
</table>