WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: JAWS and Labels

for

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

From: jbastow@westpac.com.au
Date: Mon, Feb 09 2004 11:51PM
Subject: JAWS and Labels
No previous message | Next message →


Hi All...

The company I work for has just begun to explore addressing our site's
chronic accessibility flaws. As a proof of concept for a full blown
conversion, we are attempting to massage some of our web forms into a more
accessible format, but have run into a problem when reading one of the
forms with JAWS.

Background:
The form in question uses JavaScript validation on submission. Error
feedback is provided by inserting a meaningful error message for each
field in error into a DIV layer at the top of the form. Each error
message inserted is formatted as a link that throws focus into the field
in question.
So, the short of it is that if you fill out the form and there are errors
in the input you will be returned to the same form, but with a list of
links to the fields in error inserted at the top of the form.

Problem:
When the user selects one of these "error links" the focus jumps to the
field in question, but JAWS reads the field label twice in succession
instead of just once. We have followed all the recommendations regarding
use of labels and have used label tags with the 'for' attribute set to
match the field name, etc. and when tabbing normally through the fields
JAWS reads the labels only once, so we are quite perplexed.

If anyone out there is able to shed some light on this situation it would
be much appreciated.

Cheers...

Jon Bastow
Internet Services
Westpac Banking Corporation


WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email.

Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems,
you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac,
please contact us immediately.

It is also important to check for viruses and defects before opening or using attachments. We

From: Sandy Clark
Date: Tue, Feb 10 2004 9:05AM
Subject: RE: JAWS and Labels
← Previous message | Next message →

the for="" should match the id="" in a label, not the name attribute.
Remember that id attributes are case sensitive and should not contain
spaces.

HTH

Sandra Clark
http://www.shayna.com/blog

_____

From: = EMAIL ADDRESS REMOVED = [mailto: = EMAIL ADDRESS REMOVED = ]
Sent: Tuesday, February 10, 2004 1:40 AM
To: = EMAIL ADDRESS REMOVED =
Subject: JAWS and Labels



Hi All...

The company I work for has just begun to explore addressing our site's
chronic accessibility flaws. As a proof of concept for a full blown
conversion, we are attempting to massage some of our web forms into a more
accessible format, but have run into a problem when reading one of the forms
with JAWS.

Background:
The form in question uses JavaScript validation on submission. Error
feedback is provided by inserting a meaningful error message for each field
in error into a DIV layer at the top of the form. Each error message
inserted is formatted as a link that throws focus into the field in
question.
So, the short of it is that if you fill out the form and there are errors in
the input you will be returned to the same form, but with a list of links to
the fields in error inserted at the top of the form.

Problem:
When the user selects one of these "error links" the focus jumps to the
field in question, but JAWS reads the field label twice in succession
instead of just once. We have followed all the recommendations regarding
use of labels and have used label tags with the 'for' attribute set to match
the field name, etc. and when tabbing normally through the fields JAWS reads
the labels only once, so we are quite perplexed.

If anyone out there is able to shed some light on this situation it would be
much appreciated.

Cheers...

Jon Bastow
Internet Services
Westpac Banking Corporation


WARNING - This email and any attachments may be confidential. If received in
error, please delete and inform us by return email.



Because emails and attachments may be interfered with, may contain computer
viruses or other defects and may not be successfully replicated on other
systems,

you must be cautious. Westpac cannot guarantee that what you receive is what
we sent. If you have any doubts about the authenticity of an email by
Westpac,

please contact us immediately.



It is also important to check for viruses and defects befo

From: julian.rickards@ndm.gov.on.ca
Date: Wed, Feb 11 2004 5:54AM
Subject: RE: JAWS and Labels
← Previous message | No next message

Not related to your question but for the <input> you have an incorrect
format of style, you have style="width=150px" whereas it should be
style="width: 150px".

Sorry, can't help you with your primary question.

Wait a sec. Are you throwing focus to the label or the input? Perhaps try
throwing the focus to the input?

Just an idea.

---------------------------------------------------------
Julian Rickards
Digital Publications Distribution Coordinator
Publications Services Section
Ontario Ministry of Northern Development and Mines
Phone: (705) 670-5608
Fax: (705) 670-5690



-----Original Message-----
From: = EMAIL ADDRESS REMOVED = [mailto: = EMAIL ADDRESS REMOVED = ]
Sent: Tuesday, February 10, 2004 7:54 PM
To: = EMAIL ADDRESS REMOVED =
Subject: JAWS and Labels



Hi All...

Oops...my bad. We do have the Label tags' 'for' attributes set to match the
'ID' attributes of the corresponding fields. We more have a problem with
JAWS doing too much (i.e. reading each field label twice) rather than too
little (i.e. not reading anything at all).

In case it makes my garbled verbal description any clearer, here is a code
example of the link/field style we are using:

<A HREF='javascript:document.forms[0].elements["firstName"].focus()'
CLASS='ValidationMessage'>First name - please provide details.</A>

<TR VALIGN=top>
<TD WIDTH="570" VALIGN=middle>
<LABEL for="CreditCardNo"><img
src="/images/ss_spacerdot.gif" width="0" height="0" alt="mandatory">Credit
card number:</LABEL>
</TD>
</TR>
<TR VALIGN=top>
<TD WIDTH="570" VALIGN=middle>
<INPUT NAME="p1CreditCardNo" VALUE="" maxlength=16
onBlur="this.value = allTrim(this.value);" ID="CreditCardNo"
CLASS="formsFieldText" STYLE="width=150px">
</TD>
</TR>

As I noted earlier, JAWS for some reason is insisting on reading the given
label twice when focus is thrown to such a field, i.e. it says "Credit card
number colon...Credit card number colon".

Any further comments would be greatly appreciated as I am getting some
pressure over not being able to resolve such a simple issue quickly,
although I can't help but think that what we are trying to do is possibly
confusing JAWS a little bit. A lot of what I am reading online suggests
that, in consideration of screen-reader users, you shouldn't throw the focus
around, etc.. Unfortunately this is the way our style gurus want this set
up, so I am even prepared to look at dirty workarounds if required.

Cheers...

Jon Bastow
Internet Services
Westpac Banking Corporation
Mobile: 0425 259 571
Phone: (02) 9260 [2] 6078
Fax: (02) 9260 [2] 6593

WARNING - This e-mail and any attachments may be confidential. If received
in error, please delete the e-mail and tell us by return e-mail. Because
e-mails and attachments may be interfered with, may contain computer viruses
or other defects and may not be successfully replicated on other systems,
you must be cautious in placing reliance on them. Westpac can not guarantee
that what you receive is what it sends. If you have any doubts about the
authenticity of an e-mail purportedly sent by Westpac, please contact us
immediately. Before opening or using attachments, check them for viruses
and defects. Westpac liability is limited to resupplying any affected
attachments. Westpac Banking Corporation's ABN is 33 007 457 141.


WARNING - This email and any attachments may be confidential. If received in
error, please delete and inform us by return email.



Because emails and attachments may be interfered with, may contain computer
viruses or other defects and may not be successfully replicated on other
systems,

you must be cautious. Westpac cannot guarantee that what you receive is what
we sent. If you have any doubts about the authenticity of an email by
Westpac,

please contact us immediately.



It is also important to check for viruses and defects before opening or
using attachments. Westpac's liability is limited to resupplying any
affected attachments.



Westpac Banking Corporation ABN is 33 007 457 141.




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