Re: Re: Help with extending HTML_QuickForm_select

From: Date: Mon, 07 Feb 2005 23:29:21 +0000
Subject: Re: Re: Help with extending HTML_QuickForm_select
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36021@lists.php.net to get a copy of this message
On Monday 07 February 2005 02:03 pm, Jamie Alessio wrote: > I took Justin's idea and updated my code to use a hidden multi-select > that gets updated via javascript on the onClick event of the button that > actually moves the elements on the page for the user. It took me some > time and off-list explanation to figure out that by "hidden > multi-select" Justin meant an actual <select> element that has is hidden > from the user via a "hidden" style attribute and is not a <input > type="hidden"> form element. Once I got that straightened out the rest > made sense and I was able to accomplish the same goal without relying on > the onSubmit form attribute which is a much better solution. > I would suggest that you implement some mechanism for a graceful degradation for non-javascript browsers. For example, if you have an init function which sets up the scripted controls and hides the 'real' multiselect. In this way, non-javascript browsers only see a multi select which they can still use, while js-enabled browsers get the more sophisticated control.

Attachment: [application/pgp-signature]
« previous php.pear.dev (#36021) next »