Hi,
>
> I have a new question - what is the Embperl way of doing:
>
> @xyz = ('one', 'two', 'three');
> $default = 'The default option';
>
>                     <select name="sel" size="1">
>                       <option value="default">[+ $default +]</option>
>                       <option value="[+ $xyz[$row] +]">[+ $xyz[$row]
+]</option>
>                     </select>
>

                     <select name="sel" size="1">
                       [$if $row == 0 $]<option value="default">[+ $default
+]</option>[$endif$]
                       <option value="[+ $xyz[$row] +]">[+ $xyz[$row]
+]</option>
                     </select>

>
> It seems to me it would be nice if an <option> with a $row in it does not
duplicate all of the contents of the <select> but only the contents of the
enclosing <option>?
>

Yes, we have discussed this recently, and it really seems a good idea to
change this. It works the way it works for historical reasons, but since for
2.0 you have to changes a few things anyways when you upgrade from 1.3, this
would be a good time to change the behaviour and I guess the feature that
two options (or in case of tables rows/columns) should be repeated is very
seldom.

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to