WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: WebAIM-Forum Digest, Vol 25, Issue 12

for

From: Joel Hickman
Date: Apr 19, 2007 3:10PM


I think that the problem is that most screen readers (that I know of) rely
on technology that is rapidly becoming obsolete. They depend upon parsing
the source of the page (that arrives as the http response from the server)
rather than attempting to dynamically navigate the DOM which may be modified
via DHTML. This means dynamic modifications within a page performed by the
client (browser) are not picked up.

Assuming you can require Javascript (not usually a valid assumption) then I
believe that a dynamic solution that causes a new window to pop up may be
visible to the screen reader. The easiest to use would probably be the
Javascript alert function. Here is an example embedded in a button:

<button name='alrt' value='Send Alert' style='button' onclick="alert('This
is an error message.')">Send Alert</button>

Now, in a real application, you would probably use some other event such as
onchange rather than onclick, and rather than calling alert directly, you
would call a function that performed error checking and called alert if an
error was found.

A discussion on the accessibility of alert:

http://www.webaim.org/discussion/mail_message.php?id=1072

Joel

-----Original Message-----
From: <EMAIL REMOVED>
[mailto: <EMAIL REMOVED> ] On Behalf Of
<EMAIL REMOVED>
Sent: Thursday, April 19, 2007 11:00 AM
To: <EMAIL REMOVED>
Subject: WebAIM-Forum Digest, Vol 25, Issue 12

Send WebAIM-Forum mailing list submissions to
<EMAIL REMOVED>

To subscribe or unsubscribe via the World Wide Web, visit
http://list.webaim.org/mailman/listinfo/webaim-forum
or, via email, send a message with subject or body 'help' to
<EMAIL REMOVED>

You can reach the person managing the list at
<EMAIL REMOVED>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of WebAIM-Forum digest..."