WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Opinions please

for

From: Jared Smith
Date: Jul 12, 2002 10:03AM


John-
I agree that you COULD use JavaScript for client side verification and
if the client doesn't have JavaScript, then have the server perform
the verification. This can be done by using JavaScript. If the user
has JavaScript, you can redirect the form to a non-validating server
script. If the user doesn't have JavaScript, the form goes to the
validating script as defined in the FORM tag. You can get ideas on how
to do this at http://developer.irt.org/script/form.htm#7.2 (IRT.org is
THE JavaScript resource).

You must ensure that the form is fully accessible with AND without
JavaScript enabled. Most screen readers will have JavaScript turned
on.

Jared Smith
WebAIM.org



***************
On Friday, July 12, 2002 you sent:
JFbi> Please excuse the cross posting to those who receive this twice.

JFbi> I have a client who wishes to use JavaScript in a form for form verification
JFbi> prior to submit - it is important that all fields be filled out. I have
JFbi> advised that all "Mission Critical" scripting MUST be server-side to ensure
JFbi> universal accessibility. Their concern however is on server load - the form
JFbi> is part of a huge enterprise with potentially hundreds of thousands of
JFbi> "hits" daily. The question was then posed - could they use JavaScript as
JFbi> the primary means of form verification, with a server side redundant back-up
JFbi> for user agents which do not support client side scripting?

JFbi> My first instinct is to say probably yes, citing the W3C WCAG Guideline
JFbi> 11.4: "If, after best efforts, you cannot create an accessible page, provide
JFbi> a link to an alternative page that uses W3C technologies, is accessible, has
JFbi> equivalent information (or functionality), and is updated as often as the
JFbi> inaccessible (original) page." - the redundant server-side backup delivers
JFbi> the equivelant functionality.

JFbi> Does anybody see any holes here? Not being a server guy, I'm not sure how
JFbi> they could actually accomplish this (how would the server-side checker know
JFbi> when _not_ to check without first running?), but assuming they could
JFbi> accomplish this, would it pass muster in terms of accessibility?

JFbi> Please and Thanks

JFbi> JF


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/