WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: role="alert" now in div but still not being read by NVDA

for

From: Bryan Garaventa
Date: May 17, 2013 11:30AM


If you would like to use the script I mentioned earlier, it does work for
this purpose.
This is the one at http://whatsock.com/tmp/unobtrusive_announce.js.txt

No problem if not, but it's quite easy to use.

E.G

This is a jQuery script, so you just load it normally...
<script type="text/javascript" src="jquery-1.8.1.js"></script>
<script type="text/javascript" src="unobtrusive_announce.js"></script>

Since this is a pared down version, you can then use the announce method
like so:

announce("Error message one");

Or

announce( errorContainerDOMNode );

Or to suppress repeats

announce( "Whatever", null, true);

All of the AccDC modules work this way.

Or you can take it apart and make something else, whatever you like.

This technique does work reliably in IE, FF, Chrome, and Safari however.





----- Original Message -----
From: "Greg Gamble" < <EMAIL REMOVED> >
To: "WebAIM Discussion List" < <EMAIL REMOVED> >
Sent: Friday, May 17, 2013 8:53 AM
Subject: Re: [WebAIM] role="alert" now in div but still not being read by
NVDA


> I'm now inserting the text and making the div visible via jQuery ... html
> is solid but still no notification. The alert is showing and is both
> readable by NVDA and visible. Very frustrating ..
>
> Greg
>