Re: Re: html_quickform_advmultiselect good news (availableNOW)

From: Date: Fri, 24 Jun 2005 15:37:55 +0000
Subject: Re: Re: html_quickform_advmultiselect good news (availableNOW)
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38286@lists.php.net to get a copy of this message
Laurent Laville wrote:
Even after fixed JS event attributes and form name attribute to make it XHTML compliant, i've still a problem and i don't know (until now) how to solve it. Perharps someone could have the solution ! The problem is with dual select boxes : When selected list is empty (most case) when you begin , html code generated is something like <select name="fruit[]"></select> Notice there are not yet any options; and this case must not be validate to do a page XHTML compliant I guess you still have the option to add an empty <option value=""></option> tag. Of course you'll need to add some more JS:
- to be prsent only when no other options are present (in QF renderer) - not allowing to be selected (or moved) (elements["fruit[]"][0].disabled = true; etc...) - to be inserted when the list gets emptied (elements["fruit[]"][0] = new Option("", "")) - to be removed when items are added to the list (elements["fruit[]"][0] = null) -Philippe

« previous php.pear.dev (#38286) next »