473,414 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Accessible Layered Table


"Accessible" means accessible by visually impaired persons.
Be "Layered table", I mean something like the following:

<table>
<tr>
<th></th>
<th id=n>Name</th>
<th id=a>Address</th>
<th id=p>Phone</th>
</tr>

<tr>
<th colspan="4" scope="rowgroup" id=nt>North</th>
</tr>
<tr>
<td></td>
<td headers="n 1 nt">Joe Dane</td>
<td>123 St</td>
<td>123-456-7890</td>
</tr>

<tr>
<th colspan="4" scope="rowgroup" id=st>South</th>
</tr>
<tr>
<td></td>
<td headers="n 1 st">Mary Jones</td>
<td>456 St</td>
<td>222-456-7890</td>
</tr>

</table>

Yes, it would work, however, I find it very clumsy in the sense that it
so time consuing adding headers attribute to each row. Do you have a
better way? tia.

Aug 25 '06 #1
9 1978
The posted TABLE may have a bug, I've edited it as follows:

<table border="1">
<tr>
<th></th>
<th id=n>Name</th>
<th id=a>Address</th>
<th id=p>Phone</th>
</tr>

<tr>
<th scope="rowgroup" id=nt abbr="left">North</th>
<td colspan="3"></td>
</tr>
<tr>
<td></td>
<td headers="n 1 nt">Joe Dane</td>
<td>123 St</td>
<td>123-456-7890</td>
</tr>

<tr>
<th scope="rowgroup" id=st>South</th>
<td colspan="3"></td>
</tr>
<tr>
<td></td>
<td headers="n 1 st">Mary Jones</td>
<td>456 St</td>
<td>222-456-7890</td>
</tr>

</table>

NickName wrote:
"Accessible" means accessible by visually impaired persons.
Be "Layered table", I mean something like the following:

<table>
<tr>
<th></th>
<th id=n>Name</th>
<th id=a>Address</th>
<th id=p>Phone</th>
</tr>

<tr>
<th colspan="4" scope="rowgroup" id=nt>North</th>
</tr>
<tr>
<td></td>
<td headers="n 1 nt">Joe Dane</td>
<td>123 St</td>
<td>123-456-7890</td>
</tr>

<tr>
<th colspan="4" scope="rowgroup" id=st>South</th>
</tr>
<tr>
<td></td>
<td headers="n 1 st">Mary Jones</td>
<td>456 St</td>
<td>222-456-7890</td>
</tr>

</table>

Yes, it would work, however, I find it very clumsy in the sense that it
so time consuing adding headers attribute to each row. Do you have a
better way? tia.
Aug 25 '06 #2
"NickName" <da****@rock.comwrites:
The posted TABLE may have a bug, I've edited it as follows:
Still does have a few, I think. Why not just put the row header on the
same line as the row? You've also got some slightly odd values for the
header attributes and abbr.

<tr>
<th scope="row" id="nt">North</th>
<td headers="n nt">Joe Dane</td>
<td headers="a nt">123 St</td>
<td headers="p nt">123-456-7890</td>
</tr>
Yes, it would work, however, I find it very clumsy in the sense that it
so time consuing adding headers attribute to each row. Do you have a
better way? tia.
Better way? Generate the table using a script that reads the data from
a data file or database table. You can do this either by preprocessing
or with server-side scripting, depending on how often the data in the
table is likely to change and what you have available.

--
Chris
Aug 25 '06 #3
"Why not just put the row header on the
same line as the row? "
Do you mean something like this:
<tr headers="n 1 nt">
<td></td>
<td>Joe Dane</td>
....
instead of my previous
<tr>
<td></td>
<td headers="n 1 nt">Joe Dane</td>
....

That won't work (as far as JAWS is concerned in idenfifying both the
Column header and Row header.

On the data file and db table, interestingly enough, I did that for the
basics, that is,
adding <tr><td... </td></tretc. html tag in my sql output, and got
the basic HTML file from that. Obviously, I'm not the only one doing
that, however, I did not go further, let's see ...

Chris Morris wrote:
"NickName" <da****@rock.comwrites:
The posted TABLE may have a bug, I've edited it as follows:

Still does have a few, I think. Why not just put the row header on the
same line as the row? You've also got some slightly odd values for the
header attributes and abbr.

<tr>
<th scope="row" id="nt">North</th>
<td headers="n nt">Joe Dane</td>
<td headers="a nt">123 St</td>
<td headers="p nt">123-456-7890</td>
</tr>
Yes, it would work, however, I find it very clumsy in the sense that it
so time consuing adding headers attribute to each row. Do you have a
better way? tia.

Better way? Generate the table using a script that reads the data from
a data file or database table. You can do this either by preprocessing
or with server-side scripting, depending on how often the data in the
table is likely to change and what you have available.

--
Chris
Aug 25 '06 #4
NickName wrote:
"Accessible" means accessible by visually impaired persons.
Be "Layered table", I mean something like the following:

<table>
<tr>
<th></th>
<th id=n>Name</th>
<th id=a>Address</th>
<th id=p>Phone</th>
</tr>

<tr>
<th colspan="4" scope="rowgroup" id=nt>North</th>
</tr>
<tr>
<td></td>
<td headers="n 1 nt">Joe Dane</td>
<td>123 St</td>
<td>123-456-7890</td>
</tr>

<tr>
<th colspan="4" scope="rowgroup" id=st>South</th>
</tr>
<tr>
<td></td>
<td headers="n 1 st">Mary Jones</td>
<td>456 St</td>
<td>222-456-7890</td>
</tr>

</table>
What's the empty column on the left for?
>
Yes, it would work, however, I find it very clumsy in the sense that it
so time consuing adding headers attribute to each row. Do you have a
better way? tia.
I'd suggest just not doing it this way. Stick the North and South on the
same row as the related data, in the left column. Even from the
sighted person's perspective, I don't see the benefit from arranging the
data this way.
Aug 25 '06 #5
NickName wrote:
The posted TABLE may have a bug, I've edited it as follows:
Which doesn't change my suggestion: put the North and South on the same
row as the data.
Aug 25 '06 #6
Harlan Messinger wrote:
NickName wrote:
>The posted TABLE may have a bug, I've edited it as follows:

Which doesn't change my suggestion: put the North and South on the
same row as the data.
Or use a (in this sample) a three-column table with a colspan=3 for
North and South, and eliminate the left column. This may give a cleaner
appearance, imo.

--
-bts
-Motorcycles defy gravity; cars just suck.
Aug 25 '06 #7
Beauregard T. Shagnasty wrote:
Harlan Messinger wrote:
>NickName wrote:
>>The posted TABLE may have a bug, I've edited it as follows:
Which doesn't change my suggestion: put the North and South on the
same row as the data.

Or use a (in this sample) a three-column table with a colspan=3 for
North and South, and eliminate the left column. This may give a cleaner
appearance, imo.
That gives the same arrangement as in the original message, minus the
empty left column, and leaves the nuisance of having to name the headers
explicitly.
Aug 25 '06 #8
Harlan Messinger wrote:
Beauregard T. Shagnasty wrote:
>Harlan Messinger wrote:
>>NickName wrote:
The posted TABLE may have a bug, I've edited it as follows:

Which doesn't change my suggestion: put the North and South on the
same row as the data.

Or use a (in this sample) a three-column table with a colspan=3 for
North and South, and eliminate the left column. This may give a
cleaner appearance, imo.
That gives the same arrangement as in the original message, minus the
empty left column, and leaves the nuisance of having to name the
headers explicitly.
I didn't say it was perfect. <g But as was mentioned, a script is the
best way to generate this type of page.

--
-bts
-Motorcycles defy gravity; cars just suck.
Aug 25 '06 #9
"a script is the
best way to generate this type of page.
"
Agree. That's the approach I took, at least, mostly automated for the
task.
As for putting "NORTH" and "SOUTH" on the same row, no, business
rule(BR) can't allow that, under NORTH, there are multiple rows and
same for SOUTH, and BR also dictates to keep this format.

Thanks for your inputs, all.

Beauregard T. Shagnasty wrote:
Harlan Messinger wrote:
Beauregard T. Shagnasty wrote:
Harlan Messinger wrote:

NickName wrote:
The posted TABLE may have a bug, I've edited it as follows:

Which doesn't change my suggestion: put the North and South on the
same row as the data.

Or use a (in this sample) a three-column table with a colspan=3 for
North and South, and eliminate the left column. This may give a
cleaner appearance, imo.
That gives the same arrangement as in the original message, minus the
empty left column, and leaves the nuisance of having to name the
headers explicitly.

I didn't say it was perfect. <g But as was mentioned, a script is the
best way to generate this type of page.

--
-bts
-Motorcycles defy gravity; cars just suck.
Aug 28 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Microsoft | last post by:
I'm about to start converting my application from a old-style monolith exe (with flat files and limited database support for sharing some of the data) to a layered .NET SQL server version. I have...
2
by: GoofyIdiot | last post by:
Hi, I've been reading about three layered serivces applications (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ArcThreeLayeredSvcsApp.asp) Now wonder how...
3
by: Alexander Wehrli | last post by:
Hi, Is it possible to use Controls on a Layered Window? Regards Alexander
3
by: Tim::.. | last post by:
Can someone please tell me why I'm getting the following error! I have absolutely no idea why this error keeps appearing! Thanks for any help! Compiler Error Message: BC30390:...
7
by: Jon Davis | last post by:
I have a couple questions. First of all, would anyone consider a multi-layered programming approach (building business objects that are seperate from data access logic and seperate from user...
3
by: kartoshka | last post by:
I'm writing a job application; English is not my native language & I'm having trouble translating some of the criteria requirements into what I know / have done (I have 5 years c / C++ experience...
4
by: Fromethius | last post by:
Well I'm using Dev-C++ and I made a Windows Application. I understand the basics, adding buttons and menus, etc. But what I really want to know is how to make layered images. For example,...
2
by: rigiditymodulus | last post by:
Hi - So, I had this working perfectly, then had a small crash (the transmitter for my wireless mouse occassionally freaks out my MacBook Pro) and when I rebooted and opened up my file the two...
9
by: Shreyas | last post by:
Sorry if this has been asked before. Does anyone know of any modern examples of open source software implemented in ANSI-C using a truly layered architecture (preferably in an OO fashion)? ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.