WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: accessible table sorting

for

From: ben morrison
Date: Apr 21, 2009 5:55PM


On Tue, Apr 21, 2009 at 10:53 PM, < <EMAIL REMOVED> > wrote:

> OK, I've got a table of search results with a bunch of headers like
> "category", "sub-category", etc. I want to allow users to click on an
> arrow in the header to sort by whichever one they choose.
>
> What is the best way to do this from an accessibility standpoint?
>

User clicks sortable links - this link could be an image with ALT text or
use a image replacement technique - sighted users may benefit from text as
well....
1: Backend returns the page with the table sorted to that links criteria
1 b: JS could override/stop the page refresh and insert the updated
table instead - the logic is already defined in the backend it just returns
only the table - or in this case the TBODY as the THEAD may need to contain
the sorting LINKS......

Ben
--
Ben Morrison