SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Feb 7, 2006, 01:43 #1
- Join Date
- Sep 2004
- Location
- Camas, WA (USA)
- Posts
- 228
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
accessibility of the disabled attribute in forms
In a form, the disabled attribute is easily enabled through javascript. But what if a user doesn't have javascript? My thoughts were:
1.) write the disabled="disabled" attribute with javascript. If javascript is not available, then there won't be any fields unavailable.
2.) use server-side scripting (in my case, PHP) to go back to that disabled field when the form is submitted and enable it
What is the accepted technique from a usability and accessibility standpoint?
-
Feb 7, 2006, 03:09 #2
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'd say it depends on the form. I suspect most forms would benefit from option #1, but if the form logic is complicated there will be a need for heavy validation server-side and you'll have to find a user-friendly way to present error messages etc.
Option #2 may be useful for certain forms, but it will be awkward for dial-up users and you need to explain the process thoroughly for users with screen readers etc, so that they'll know why the form reloads.Birnam wood is come to Dunsinane
Bookmarks