Categories
code dom javascript podcast web

Unobtrusive Javacript (and the DOM)

Ah, Javascript. The wonderful scripting language that creates lots of cool stuff on your web page. But how do you make it Accessible?

Download Web Axe Episode 11

Links:

This is an example of a javascript “listener” which opens a link in a new window (using a function) if the rel in the a tag is “external”.

window.onload=function(){
setOnClick();
}

function setOnClick() {
if(!document.getElementsByTagName) {
return;
}
var anchors = document.getElementsByTagName("a");
for (var i=anchors.length; i !=0; i--) {
var a=anchors[i-1];
if (a.rel.indexOf("external") != -1) {
a.onclick = function(){newWin(this.href,'popup1',700,400);
return false;}
}
}

Categories
accesskey code podcast tab web

Tab Order and Accesskey

Techniques and discussion on setting the tabbing sequence and creating access keys for elements on your HTML page.

Download Web Axe Episode 9

Sample Code:

table of contents

Categories
code navigation podcast web

Skip-Nav Technique

The “skip-nav” technique is a method for the online cursor to jump over a group of navigation links, usually a site’s main menu.

Download Web Axe Episode 6

Links:

Sample code:

Skip navigation
...[header and navigation links]...

Heading

This is the first paragraph

Categories
alt code image podcast text web

ALT, Long Description, D-Link

Good and bad examples of the ALT parameter. Long descriptions and D-links: what are they and how do you code one?

Download Web Axe Episode 5

W3C on text equivalents

Code samples:

Ornate photo of Ms. Kensington

Chart of XYZ Corporation Earnings 1995 through 2005

Chart of XYZ Corporation Earnings 1995 through 2005
[d]

Categories
caption code data header podcast scope table web

Data Tables

What you need to know to make your table accessible. This means your tabular data table, of course, since we’re no longer using tables for layout, right? Dennis covers summary, caption, th, scope and abbr.

Download Web Axe Episode 3

[transcript]

W3C techniques on row and column information

Sample code:

Average temperature and humidity for the United States
State Name Average Temperature Average Humidity
Alabama 50 50
Alaska 50 50