![]()
|
||
|
For the complete text of the
regulations, visit www.access-board.gov/sec508/guide/1194.22.htm. Help from ColdFusionWhere can CF assist you?
Let’s look at an example, using paragraph a: “A text equivalent for every
non-text element shall be provided … via alt.” If you are displaying a
record with an associated image (perhaps the description of a house and photo).
List the image path and image description as fields in the record, and then
output the image as part of the dynamic data (listing 1). LISTING 1 <cfquery
name="house_data" datasource="houses"> SELECT price, address, image_path,
image_description FROM tblHouses </cfquery> <CFOUTPUT
QUERY="house_data"> Address: #address#
Price: #price# <img
src="#image_path#" alt="#image_description#"> </CFOUTPUT> Data tables A common technique deployed by ColdFusion Developers is
building dynamic tables from recordsets. Good news! You can build dynamic
tables that are section 508 compliant and populated with records from a CFQUERY.
Imagine you wish to query a data source containing information about your CD
collection, with the records displayed in a table listing artist and CD title. LISTING 2 <table summary="This table lists the artists and
titles of my music collection" border="1" > <caption>C D
collection</caption> <tr> <th
id=”artist">artist</th> <th
id=”title">title</th> </tr> <CFLOOP
QUERY="CD_collection" > <CFOUTPUT> <tr> <td
headers=”artist”>#artist#</td> <td
headers=”title”>#title#</td> </tr> </CFOUTPUT> </CFLOOP> </table> A screen reader would speak the following: “CD Collection.
This table lists the artists and titles of my music collection. Artist Title…”
and then would speak the contents of each cell. Things to
watch out for ColdFusion is an excellent tool in creating compliant web
pages. However, there are some things for you to consider. CFFORM and other
JavaScript producing tags do not have a way to control placement of the
<NOSCRIPT> tag. You will need to browse your pages and look at the source
code produced to determine placement of the <NOSCRIPT> tag. (Macromedia
is aware of this issue and will be addressing it in the future). Another consideration is the use of
CFINCLUDE. If the included template is used solely as an inserted page
component, strip the file of all <HTML> <HEAD> and <TITLE>
opening and closing tags. Otherwise, pages may confuse screen readers with
extra opening <HTML> and closing </HTML> tags. Other problem tags that use java applets include ·
CFGRID ·
CFTREE ·
CFSLIDER To be compliant you will need to provide the data in these
tags in a separate format such as HTML tables or lists. TimeoutDo you have member’s only login sections to you site? Then
you may have timeout issues. Session variables by default only last 20 minutes.
That may not be long enough for disabled users to view the material. What I
suggest you do is code the time out in your code and increase the session
timeout to an hour or more. Then you can let individual user increase the
timeout for them. Positive
effects of compliance By adapting coding practices required by the guidelines for
accessibility, you will be in a “win-win” situation. First, your visitors that
are disabled are winners because they will be able to access your site! Second,
your code will be streamlined and clean.
The guidelines suggested by the access board and W3 for proper HTML 4
implementation recommend using style sheets for formatting. While the 508
regulations require your pages to be able to convey content without an associated
style sheet, their use is superior to frames and layout tables for placement of
page elements. Summary In this article we have introduced you to accessibility
issues and new requirements for Federal web design section 508. Cold Fusion’s
flexibility makes it your ally for compliance. An accessible website is a well
designed site. Resources http://www.cast.org/bobby popular Bobby checker for examining pages
for accessibility http://www.section508.gov/ Federal Section 508 – a ColdFusion site! http://www.hj.com Henter Joyce
makers of the JAWS screen reader http://www.hisoftware.com HiSoftware producers of verification tools http://www.w3.org/TR/WCAG10-TECHS W3 accessibility
guidelines http://www.diboc.com/
DIBOC organization with some excellent examples http://www.macromedia.com/macromedia/accessibility/
download tools http://www.endoradigital.com/fix/ Lynx text based browser http://www.econointl.com/sw/ Simply Web 2000 screen reader http://www.crunchy.com/tools/index.html 508 accessibility
valuator and CF Studio tool http://www.usablenet.com/lift_dw/lift_dw.html Lift 508/W3C add
on for Macromedia Dreamweaver, including global ALT tag editor. http://www.macromedia.com/software/flash/productinfo/accessibility/
Flash
accessibility information BioJon
Brundage is a Government consultant, ColdFusion programmer, MDCFUG speaker and
author. You can reach Jon at [email protected].
Michael
Smith is president of TeraTech http://www.teratech.com/ , a 12-year-old
Rockville, Maryland based consulting company that specializes in ColdFusion, Database
and Visual Basic development. Michael
runs the MDCFUG and recently organized the two-day, Washington, DC-based CF2001
conference that attracted more than 150 participants. You can reach Michael at [email protected]
or 301-881-1440.
|
|
|
|
| |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home | Links | Articles | Past Meetings | Meeting Photos | Site Map | ||||
| About MDCFUG | Join | Mailing List |Forums | Directions |Suggestions | Quotes | Newbie Tips | ||||
|
|
||||
Copyright © 1997-2025, Maryland Cold Fusion User Group. All rights reserved. |
||||