WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: javascript and webapps

for

From: Christian Heilmann
Date: Mar 22, 2006 12:00AM


> Another question - not too groan-worthy I hope.
>
> Is there any point at which a javascript-dependant application can be
> deemed accessible, or are the 2 mutually exclusive? My experience says
> that you want progressive enhancement - add the bells and whistles, but
> add them on top of a functioning application where javascript (and css
> etc.) aren't available. But.. I'm now with a team were there's been a
> working assumption that requiring javascript is acceptable for an
> application vs. a web page, and the cost of rebuilding to a more
> progressive enhancement model may simply be too great.
> What then? There's lots I can do to improve accessibility while
> maintaining this assumption, and lots of assisted browsing scenarios
> will work just fine with javascript. And some is surely better than none.
> I've done work where accessibilty trumped all (like the AIR events), but
> in a comercial environment it jostles with a host of other priorities.
> We'd all like to do the right thing, but some compromise is inevitable.
> Should I let the javascript thing go and focus efforts where I can, or
> is this a untenable position that will land us in court (or lose
> government clients) eventually??

Big discussion topic there. Personally I am with you that a JS
dependent app is just not accessible, but I do understand the business
/ development time aspect as well, especially when it comes to
retrofitting an already existing application.

Especially in .NET2 it is far too tempting to simply drag and drop an
application together and use the original grid control that creates
"javascript:" links.

Funnily enough the 508 guidelines seem OK with that from a legal point
of view, WCAG isn't though (prove me wrong, this is how I read it).

IBM and Mozilla worked together on an accessible set of DHTML controls
and it seems quite handy what they have come up with:
http://www.mozilla.org/access/dhtml/

Sitepoint's new JavaScript Anthology has a chapter on JavaScript and
accessibility that features a lot of test results with different
screen readers, but personally I don't see that as much more use than
a DHTML script that was tested in 1999 on Netscape and IE - by making
your DHTML accessibility dependent on the user agent - regardless of
screen reader or browser - you make it easily outdated.

The problem is not only users of assistive technology, it is about
availability aswell. What if I work in a high security environment
where my employer turns off JavaScript or filters it out via a proxy
by default? What if I am somewhere without internet access on the
ground and want to use my mobile or satellite phone to reach an app?

My personal approach that I try to do any time the project allows for it:

- make it work without JS
- add event handlers or even an AJAX layer to make it work more smoothly
- give the user the option to use one interface or the other - as most
web apps require login and have a defined user journey this is a lot
easier, as visitors are not likely to enter in any of the pages like
they do in a web site.

The latter is always a feasible option as the legal threat might give
you enough leverage to warrant a lighter non-JavaScript interface
version.

HTH
Chris

--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/