Accessibility
It is important that all users can access applications built using Dojo. People with disabilities access the Web in many manners. Some people rely on the keyboard only to navigate and make selections. Others use custom font and color settings, custom style sheets, screen magnification or screen readers to interact with the computer. With the addition of multimedia to the Web, captioning is important for folks with hearing loss. Those with cognitive disabilities may use a variety of assistive technology to adapt the content to a particular learning style.
In addition, many countries require that Web content is accessible to all. Section 508 of the Disabilities Act requires the US Government to purchase accessible technology. Australia, Japan, Great Britain and the European Union all have accessibility regulations. Thus, it is important for the Dojo Toolkit to provide a way to build accessible applications.
- Printer-friendly version
- Login or register to post comments
- Subscribe post

how to override the widget defalut method
I would not like to write my own ValidationTextBox, i want to write my isValid() method
how could i to write my function?
I code like this, but it does not work
<link href="<s:url value='/css/normal.css'/>" rel="stylesheet" type="text/css" media="all"/>
<link href="<s:url value='/css/loginForms.css'/>" rel="stylesheet" type="text/css" media="all"/>
<link href="<s:url value='/js/lib/dojo/resources/dojo.css'/>" rel="stylesheet" type="text/css" media="all"/>
<link href="<s:url value='/js/lib/dijit/themes/tundra/tundra.css'/>" rel="stylesheet" type="text/css" media="all"/>
<script type="text/javascript" djConfig="parseOnLoad:true,isDebug:true" src="<s:url value='/js/lib/dojo/dojo.js'/>"></script>
<script type="text/javascript">
dojo.require("dijit.form.ValidationTextBox");
dojo.require("dijit.form.Button");
</script>
</head>
<body class="tundra">
<div class="container">
<div class="content">
<th>Password:</th><td><input id="password" type="password" dojoType="dijit.form.ValidationTextBox" promptMessage="at least six character" invalidMessage="at least six character" required="true" name="password" size="28" ></td>
</tr>
<tr>
<th>RePassword:</th>
<td>
<input id="password2" name="passwordVerify" type="password" dojoType="dijit.form.ValidationTextBox" promptMessage="at least six character" invalidMessage="at least six character" required="true" size="28" >
<script type="dojo/method" event="isValid" >
alert("1");
alert(this.textbox.value);
if(this.validator(this.textbox.value, this.constraints)&&dojo.byId("password").value==this.textbox.value){
return true;
}
return false;
</script>
</input>
</td>
</tr>
</table>
</form>
</div>
</div>
</body>
Thanks for your help!