Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Javascript for ADA 508 Compliance

Status
Not open for further replies.

rohitkhurana

Programmer
Apr 11, 2006
2
US
Hi,
My website has to be ADA 508 compliant, but the problem is that I use lot of javascript(pop ups, auto focus on fields, focus back on parent windows etc).

Can somebody suggest how to remove javascript and keep the following functionality.
Any help in this regard would be really apreciated.
 
You can't remove JavaScript, but keep the functionality that JavaScript requires.

You can make a site that is functional with no frills (i.e. sans JS), but that then is enhanced if the user has JS, however.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Yes, things like auto focus will not work if you remove Javascript but that is a frill anyway.

You could set your serverside code up to detect if Javascript is working and if not substitute server side code in it's place. For example if you did on-page validation with Javascript then you would modify the form to submit instead, do the server-side testing that you really should be performing anyway and return to the form to show the errors. The only visual difference would be the page reloading instead of everything happening on-page.
It will take a lot of re-coding though.

As for popups, my preference is to always use an on-page popup if possible using a positioned element rather than going to an outside browser screen. The same effect could be done server-side by setting the property of the popup window ON during page build so when a button is pressed that would cause the popup you reload the page passing a value to turn on that popup display.

It requires a very different way of looking at the application but none of the coding is really difficult once you decide on your approach.


Paranoid? ME?? Who wants to know????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top