Re: QuickForm, multiple select
| From: | Justin Patrin | Date: | Thu, 20 Jan 2005 23:36:41 +0000 |
| Subject: | Re: QuickForm, multiple select | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17062@lists.php.net to get a copy of this message | ||
On Thu, 20 Jan 2005 14:58:56 -0800, Jamie Alessio
<Jamie.Alessio@ucop.edu> wrote:
> I'm reviving an old thread from back on 2003.04.18... has anyone
> implemented this type of 'select' feature with QuickForms?
>
> +--------+ +--------+
> | opt. 1 | >> | opt. 1 |
> | opt. 2 | > | opt. 2 |
> | opt. 3 | < | |
> | opt. 4 | << | |
> | ... | | |
> +--------+ +--------+
>
> I'm about to do it based on javascript code from
> http://www.mkaz.com/reference/js/selmenu.html and wanted to
> check if
> anyone has already done this or if you have a better example for how to
> accomplish this. I plan to start with the code from
> QuickForm/hierselect.php to see how to properly integrate javascript
> with QuickForms.
Sounds cool. Basically a multi-select then (the end-result is the
same)? I would suggest extending HTML_QuickForm_select, forcing
multiple, and overriding the output part. That way you leverage the
option/etc stuff already in there.
>
> - Jamie
>
> > Have anyobody patched "QuickForm/select.php" in order to
> > get Multiple Select like this: ??
> >
> >
> > +--------+ +--------+
> > | opt. 1 | >> | opt. 1 |
> > | opt. 2 | > | opt. 2 |
> > | opt. 3 | < | |
> > | opt. 4 | << | |
> > | ... | | |
> > +--------+ +--------+
> >
> > ^^ ^^
> > Initial combobox Selected options
> >
> > Please, noticed buttons ">>",
> > ">","<<","<" between
> > select multiples.
> > That buttons must be are managed by JavaScript.
> >
> > Thanks...
> >
> > Mac
> > ...The PhP_KiD
> >
>
--
Justin Patrin