- Dynamic changes in the content are not always detected by tools such as screen readers, so the user is not made aware that something has happened.
Things to Consider When Using Scripts in Your Website / Application
Remember to make it possible to use functions without access to scripts. It must be possible to use the features, but perhaps in a more fundamental way, even without a script. Users that do not support scripting into their device may in some cases need information that the site / feature works well without script. The conveniently presented in conjunction with the function or under the “About this site”.
- Avoid using scripting features that already exist in the browser or works just as well without scripts. A few examples are:
- Navigation links (easily made as normal links).
- Printing function (use the browser’s built-in functions for printing in combination with a style-sheet for printing).
- If you use scripts for visual effects that convey information to users, remember that the same information must be conveyed to users who can see the content.
- Avoid making functions that require a certain type of input device. An example is the features that require the user with the mouse, drag and drop items. Functions must be designed so that they function to use with several types of input devices.
- Never rely solely on script-based validation functions in forms. It must be possible to submit a form without scripts. Information submitted by users must be validated on the server side. Validation of the information on the server side also helps to prevent attacks on databases.
- Avoid browser-specific functionality. Use established standards such as the W3C ‘s Document Object Model (<a title="Three Features That Will Simplify Handling The DOM-nodes" href="http://www.vijaywebsolutions.com/three-features-that-will-simplify-handling-the-dom-nodes/" target="_blank">DOM). One way to avoid problems is to use any of the existing libraries. Many of these are open source and have already been tested on a large number of browsers.
- Allows you to create links to the information on your website. If you use scripts to dynamically update the page with information, it must be possible to refer to it in other contexts, such as through regular links.
Some of the Characteristics of Ajax:
- Faster web pages, where only information that appears for the moment to be downloaded.
- Forms that suggest continuations of the user begins typing.
- Zooming from the overview image for details – useful for maps and to make statistics teaching.
Therefore, such functionality can cause problems for some users. A visually impaired may miss the information updated dynamically and a disabled may not be able to use the slider if you can not control with the keyboard.
How to Test
This is one of the best practices in <a href="http://www.vijaywebsolutions.com" target="_blank">web development process, that help to enhance the accessibility, availability and indexing of the website.