Hi!

On Mon, Apr 29, 2002 at 05:00:19PM -0400, Kee Hinckley wrote:
> I wish that
> 
> <option value="">None</option>
> <option value="_new">New</option>
> <option value="[+ (values %Authors)[$row] +]">[+ (keys 
> %Authors)[$row] +]</option>
> 
> generated one instance of None and New instead of $row instances.

I guess the usual workaround is known:

[$ if $row == 0 $]
<option value="">None</option>
<option value="_new">New</option>
[$ endif $]
<option value="[+ (values %Authors)[$row] +]">[+ (keys %Authors)[$row] +]</option>

> I don't think there's any instance when you wouldn't want it to do
> that.  And it would make handling menus much easier.

Regarding SELECT, I agree. At least the vast majority of cases works
that way, so it would be a useful default.

            Regards, Axel
-- 
-------------------------------------------------------------
Axel Beckert      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 926530
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