Ajax and Jaws Accessibility

Chris Blouch

February 2006

Question

How can we make Ajax work with screen readers like Jaws?


Answer

The major issues are the same for any DHMTL project.

1. How do we let jaws know the content has changed?

2. How do we move Jaws focus?

3. Hints


Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 transitional/?EN" "http://www.w3.org/TR.xhtml1/DTD/xhtml1-transitional.dtd>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Hovering DIVs</title>
<link rel="stylesheet" type="text/css" href="access.css"/>
<script type="text/javascript" src="access.js"></script>
</head>
<body>
<div class="links">
  <a href="#thebox" onclick="update(1);return false;">Update Content 1</a>
  <a href="#thebox" onclick="update(2);return false;">Update Content 2</a>
  <a href="#thebox" onclick="update(3);return false;">Update Content 3</a>
  <a href="#thebox" onclick="update(4);return false;">Update Content 4</a>
</div>
<div class="boxes">
  <div class="box one" id="a1">
    <h6><a name=thebox class="hideme">box 1</a></h6>
	Original Content in a nice big box
  </div>
</div>
</body>