WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Sortable Table Question

for

From: Tim Harshbarger
Date: Apr 1, 2003 12:04PM


Lisa,

For someone using a screen reader, I believe they will have to start at the top of the table every time the sorting order is changed. Probably, the screen reader will do that if the page is refreshed. However, the user will need to move focus up to the column headings in order to be able to select one.

For example, if you had a table with address information in it... In order for a person using something like a screen reader to cause the table information to be sorted by State, the user would need to click on the column heading. To make the column headings "clickable" for someone using assistive technologies, like screen readers, the user would need to be able to use the keyboard to click on the heading. This means the column headings will need to be some kind of accessible interactive element such as a link or button.

In my case, I use a screen reader. If I were using such an interface, it might go something like this.

I find out I will be taking a business trip to Atlanta. I figure while I am there, I want to see if I can meet with some of my accessibility colleagues there.

Once I get to the table, I decide I want to sort by City. So first, I tab to the City link and press enter. The table resorts and I start reading from the top of the table. While I am looking up colleagues on the address table, I receive a phone call from a developer. She wants to know the e-mail address for our contact at company XYZ. Since I am down in the table, I back tab (Shift+Tab) back to the Company link where I press enter again. Now I can go look up the contact for that company.

I hope this information is helpful.

Thanks,
Tim