>
> Just FYI, I discovered there is one place where that technique does not
work.
>
> <select name="person.id:[+ $i +]" onchange="AuthorMenu(this, [+ $i +])">
> [$ if ($row == 0) $]
> <option value="">None</option>
> <option value="-1">Other...</option>
> <option value="">---</option>
> [$ endif $]
> <option value="[+ $set->[$row]{id} +]">[+ $set->[$row]{sortkey
> } +]</option>
> </select>
>
> If there are no items in $set, this will result in an empty menu,
> which is not what you want.
Yes, that's true. If this could be the case you need to use a loop, which
isn't much more to write or wait until I have change Embperl to handle this
more smart:
<select name="person.id:[+ $i +]" onchange="AuthorMenu(this, [+ $i +])">
<option value="">None</option>
<option value="-1">Other...</option>
<option value="">---</option>
[$ while ($rec = $set -> Next) $]
<option value="[+ $rec->{id} +]">[+ $rec->{sortkey} +]</option>
[$ endwhile $]
</select>
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]