WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Accessible Javascript

for

Number of posts in this thread: 3 (In chronological order)

From: ben morrison
Date: Mon, Sep 20 2004 1:27PM
Subject: Accessible Javascript
No previous message | Next message →

Im trying to get my head round the WAI's recommendation for making
Javascript accessible.

I've been asked to include a news feed (box) from the bbc.

an example can be seen here:
http://www.easy.com/bbc_newsHL.html

to start with it has noscript content:

<a
href="http://news.bbc.co.uk/shared/bsp/hi/services/htmlsyndication/html/javascript.stm"
target="_BBC"><img
src="http://news.bbc.co.uk/htmlsyndication/furniture/synd_js_error_js-inactive.gif"
width="165" height="200" border="0" alt="BBCi: Javascript is not available
on this browser"/>

but this isn't helpful noscript content - surely a link to bbc news
page would be more useful?

so this would fail WAI guidlines already? or could I add in my own
content instead/as well as.

i'm interested in the fact that (some) Screen readers can use
javascript - how could I then test to see wether it was accessible?
because surely thats another issue in itself.

ben

From: Patrick H. Lauke
Date: Mon, Sep 20 2004 1:50PM
Subject: Re: Accessible Javascript
← Previous message | Next message →

morrison.ben wrote:

> i'm interested in the fact that (some) Screen readers can use
> javascript - how could I then test to see wether it was accessible?

first of all: turn javascript off, then test...can you still access the
core functionality? e.g. if the javascript is used to create some sort
of navigation system, can the site still be navigated when javascript is
not available?

next: check any documentation from screen reader manufacturers. do they
give any information about which javascript functionality is seamlessly
supported by their product? e.g.
http://www.freedomscientific.com/fs_support/BulletinView.cfm?QC=565

"Q: How can I expect JAWS to handle JavaScript on my Web page?

A: JAWS will work correctly with JavaScript if:

* The scripts are activated by clicking a link or clickable item and the
script dynamically updates the HTML source.
* The scripts do not update the page without user intervention."

although there are other cases not covered by this (e.g. scripts
attached to onload behaviour that manipulate the DOM at page load time)

other than that, short of testing it in different screenreader/browser
configurations, the best would be to ask on lists such as this one, i
think...

Patrick H. Lauke
_____________________________________________________
re

From: Andrew Kirkpatrick
Date: Mon, Sep 20 2004 3:18PM
Subject: Re: Accessible Javascript
← Previous message | No next message

Ben,

Assuming javascript is required, which seems to be the case, it is best to
make sure that the HTML created by the script is standard and accessible,
and that it loads as soon as the page loads. If the HTML loads after the
rest of the page, users might not be made aware of the text. Similarly, if
a user reads beyond the new items and then they change, the user might not
know that the change has occurred. In some cases the user would need to
force a refresh of the page model, in others the user just needs to navigate
to the changed content, but won't know where that changed content is.

Not too easy in either case. Provide information to help users, and
consider a noscript alternative that is non-dynamic.

AWK

>> i'm interested in the fact that (some) Screen readers can use
>> javascript - how could I then test to see wether it was accessible?
>
> first of all: turn javascript off, then test...can you still access the
> core functionality? e.g. if the javascript is used to create some sort
> of navigation system, can the site still be navigated when javascript is
> not available?
>
> next: check any documentation from screen reader manufacturers. do they
> give any information about which javascript functionality is seamlessly
> supported by their product? e.g.
> http://www.freedomscientific.com/fs_support/BulletinView.cfm?QC=565
>
> "Q: How can I expect JAWS to handle JavaScript on my Web page?
>
> A: JAWS will work correctly with JavaScript if:
>
> * The scripts are activated by clicking a link or clickable item and the
> script dynamically updates the HTML source.
> * The scripts do not update the page without user intervention."
>
> although there are other cases not covered by this (e.g. scripts
> attached to onload behaviour that manipulate the DOM at page load time)
>
> other than that, short of testing it in different screenreader/browser
> configurations, the best would be to ask on lists such as this one, i
> think...
>
> Patrick H. Lauke
> _____________________________________________________
> re