alicia1234
asked on
Need help interpreting a 508 compliance issue regarding JavaScript onChange event handler
508, paragraph l, says:
"onChange: This event handler is very commonly used for triggering JavaScript functions based on a selection from within a <select> tag. Surprisingly, it presents tremendous accessibility problems for many commonly used screen readers and should be avoided. Instead, web developers should use the onClick event handler (associated with a link or button that is adjacent to a <select> tag) to accomplish the same functions."
I use onchange to populate a dynamic list box of states based on the selection of country, like this:
<select name="country" id="country" onchange="MM_callJS('setDy naList(0,a rrDL1)')">
It's not clear to me how I would do this as 508 suggests, specifically: "web developers should use the onClick event handler (associated with a link or button that is adjacent to a <select> tag) to accomplish the same functions".
Any ideas? I know that 508 was written a long time ago - is this still an issue for "modern" screen readers?
"onChange: This event handler is very commonly used for triggering JavaScript functions based on a selection from within a <select> tag. Surprisingly, it presents tremendous accessibility problems for many commonly used screen readers and should be avoided. Instead, web developers should use the onClick event handler (associated with a link or button that is adjacent to a <select> tag) to accomplish the same functions."
I use onchange to populate a dynamic list box of states based on the selection of country, like this:
<select name="country" id="country" onchange="MM_callJS('setDy
It's not clear to me how I would do this as 508 suggests, specifically: "web developers should use the onClick event handler (associated with a link or button that is adjacent to a <select> tag) to accomplish the same functions".
Any ideas? I know that 508 was written a long time ago - is this still an issue for "modern" screen readers?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What browsers have an onClick event on options?
Good point, works only in Opera/Firefox.
You can then try delegate onclick to <select> element and then check index of selected element o_O
You can then try delegate onclick to <select> element and then check index of selected element o_O
ASKER
Thanks for the info so far. wilq32 said "From what I know it is no longer an issue." I'd love to know that for sure and then I wouldn't even worry about it.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here is a time limited eval software that will test 508 compliance of a web site
http://www.powermapper.com/products/sortsite/ads/acc-section-508.htm?gclid=CNzUy4K8sJsCFZJM5QodbU0oqg
http://www.powermapper.com/products/sortsite/ads/acc-section-508.htm?gclid=CNzUy4K8sJsCFZJM5QodbU0oqg