WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: screen readers constantly saying "clickable" with onMouseDown Javascript in a table, is there a better design recommendation for this?

for

From: Steve Faulkner
Date: Dec 5, 2011 8:54AM


Hi Burkir,
had a look at the page,
I believe that the 'clickable' announcement is due to the inline
onclick event handler on the table:

onclick="aspxGVTableClick('ctl00_MainContent_panelLeit_gvBookSearch', event);"

screen readers I have tested (jaws amd NVDA) only announce the
presence of an onclick when the event handler is added inline

<div onclick="javascript"> some text </div>

if the event is registered via scripting it is not picked up by screen
readers and not announced. For example using
'element.addEventListener'
https://developer.mozilla.org/en/DOM/element.addEventListener

regards
Stevef


On 5 December 2011 15:25, Birkir R. Gunnarsson
< <EMAIL REMOVED> > wrote:
> Hi all
>
> I am working with a library page (in Icelandic admittedly).
> The page is
> http://hbleit.bbi.is/
>
> To get a sample of a table, type in "Auel" (or any other author you
> fancy) in the search field and hit enter (leit = search).
> The resulting interface table is a bit clumsy but it does work.
> There is a lot of "fancy" drag and drop functionality going on, but
> there is sufficient keyboard support to get it done.
> The problem I am having with this, and the users complain about, is
> that the word "clickable" is read for practically every column,
> because there is an onMouseDown event associated with almost every
> column and value.
> When an Icelandic tts voice is used, but the word clickable is not
> translated, you end up with a minor, but irritating user distraction.
> I have looked at accessibility commentary for "onMouseDown" but it
> only suggest implementing appropriate keyboard support, which is not
> the issue, but I can't find anywhere how one could prevent it from
> being "vissible" to the screen readers.
>
> Is it possible to either use a different type of event, use ARIa to
> hide this functionality, or would you simply recommend a more major
> overhaul of how this search result table is implemented?
> (the last 3 columns in the result table have options like "add to wish
> list" "download" and "order on cd").
> We have the vendors attention at the moment, especially for small
> accessibility repairs.
> I know, in the perfect world, this whole set up should be recoded, and
> it is on the agenda for next year, but if there is a quickish type of
> fix that could be implemented to prevent the word "clickable" from
> being read constantly, it would be a feather in my cap and no misatke.
> Thanks all.
> -Birkir
>