Re: dynamic lists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# jochem@xxxxxxxxxxxxx / 2007-01-17 23:20:23 +0100:
> Kevin Murphy wrote:
> > On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote:
> >> #1) Submit the form (to itself) when a user chooses an option from the
> >> first list (using onChange=form.submit()) then with PHP query the
> >> database for the second set of options.
> >>
> >> #2) Use JavaScript to store all the values and pop them in when the user
> >> chooses an option from the first list (using onChange=someFunction(...)).
> >>
> >> I like #2.  If you need a starting point, google for "javascript dynamic
> >> select list"
> > 
> > FYI... Neither #1 or #2 are considered good practice for
> > Accessibility/ADA compliance. If you are using a keyboard or screen
> > reader to view your website, it will always pick the first one in the
> > list and you won't have the option of even seeing the rest of the list.
> > Basically, anything that uses onchange or onselect will cause
> > accessibility issues. The only way to accomplish this is using onclick
> > or submitting the form.
> 
> that stance basically negates everything 'ajax', flash, video and everything
> considered to be remotely 'web2.0' - is the 'low-common-denominator' case
> always the correct choice?
 
And what about the my-ajax-is-longer-than-your-ajax (or whatever's "in"
right now (is "in" still a "cool" word?)) lemming-march mentality?

> I understand the importance of accessibility but the practicality of most
> peoples' job in this sector means satisfying the requirements of a client
> that demands such dynamic functionality such as the auto-selection example
> given here.
 
That's typically a result of poor user requirements capture. :)

> is there not an argument that screen-reader and [braille] keyboard software
> are somwhat responsible for being capable of 'keeping up' - given that an
> onclick can be handled why not an 'onchange' (in theory)?

Yeah, wheelchairs can move along a sidewalk, so what's stopping them
from walking up and down stairs?  If you haven't written an open source
browser on par with mozilla for blind people, it's IMO polite to not
raise the bar for them unless necessary. KISS and all that.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux