Re: [PHP] dynamic lists
- From: neuhauser@xxxxxxxxxx (Roman Neuhauser)
- Date: Wed, 17 Jan 2007 23:54:59 +0000
# 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
.
- Follow-Ups:
- Re: [PHP] dynamic lists
- From: tedd
- Re: [PHP] dynamic lists
- From: Jochem Maas
- Re: [PHP] dynamic lists
- References:
- RE: [PHP] dynamic lists
- From: "Brad Fuller"
- Re: [PHP] dynamic lists
- From: Kevin Murphy
- Re: [PHP] dynamic lists
- From: Jochem Maas
- RE: [PHP] dynamic lists
- Prev by Date: Re: [PHP] Getting domain out of a URL {SOLVED]
- Next by Date: Re: [PHP] $_SESSION variable gets lost on FORM action
- Previous by thread: Re: [PHP] dynamic lists
- Next by thread: Re: [PHP] dynamic lists
- Index(es):
Relevant Pages
|
Loading