WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Form Labels not recognized....

for

From: Jeff Rhodes
Date: Sep 23, 2002 11:58AM


The problem is that your label text is missing. Jaws is looking for a
text element for the label and you have a control (a button). One
way I have gotten around this is to assign a hidden class to the label
so that the sighted don't see it and Jaws does.
<style>
.hidden {display:none;}
</style>

<td align="right"><label for="email_to" class="hidden">Send Email
To</label><input type="button" value=" To "
onClick="OnPhoenixAddress(); return false"></td>
<td align="left"><input type="text" tabindex="1" name="msg_to"
value="" size="50" maxlength="1000" id="email_to"></td>


On 23 Sep 2002 at 11:16, Dawn Hunziker wrote:

> Hi all,
>
> I have an interesting situation regarding form labels....
>
> At the University of Arizona, we are using a program that allows University
> staff and students to access their email online and some Javascript is
> used. I asked the author of the program to add the <label for="xxx"> xxx
> </label> and the id="xxx" within the form field information which he did
> correctly. I checked the page again this morning using Jaws 4.02 and the
> edit field labels still say "edit" with the labels that were attached.
>
> The page is set up using buttons for "To", "CC", and "BCC" -- all of which
> you can click on to go to an address book and select the
> recipients. However even the edit box with simple text (subject:) is not
> being read. Do any of you have any suggestions??
>
> Thanks in advance for any feedback you can provide. At the bottom of this
> email I have included the actual text from the area with the form edit fields.
>
> Sincerely,
>
> Dawn Hunziker
> Assistive Technology Coordinator
> Disability Resource Center
> University of Arizona
> 520-626-9409
> <EMAIL REMOVED>
>
> <table valign="top" border="0" cellpadding="0" cellspacing="1">
> <tr>
> <td align="right"><label for="email_to"><input type="button"
> value=" To " onClick="OnPhoenixAddress(); return false"></label></td>
> <td align="left"><input type="text" tabindex="1" name="msg_to"
> value="" size="50" maxlength="1000" id="email_to"></td>
> </tr>
> <tr>
> <td align="right"><label for="email_cc"><input type="button"
> value=" Cc " onClick="OnPhoenixAddress(); return false"></label></td>
> <td align="left"><input type="text" tabindex="2" name="msg_cc"
> value="" size="50" maxlength="1000" id="email_cc"></td>
> </tr>
> <tr>
> <td align="right"><label for="email_bcc"><input type="button"
> value="Bcc" onClick="OnPhoenixAddress(); return false"></label></td>
> <td align="left"><input type="text" tabindex="3" name="msg_bcc"
> value="" size="50" maxlength="1000" id="email_bcc"></td>
> </tr>
> <tr>
> <td align="right" nowrap bgColor=#cccccc><label
> for="email_subject"><font face="Verdana,Arial,Helvetica"
> size="2">&nbsp;Subject:</font></label></td>
> <td align="left"><input type="text" tabindex="4"
> name="msg_subject" value="" size="50" maxlength="1000"
> id="email_subject"></td>
> </tr>
> </table>
>
>
> ----
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>
>


Jeff Rhodes, Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Internet Association Corporation
www.iaccorp.com
voice: (330) 376-6006 x255
fax: (330) 376-3355
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thought for the day:
-Change is inevitable, except from a vending machine.



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