Hi Gitte, bad idea to use "id" for this, you are probably running into a namespace-problem. To check this, just give out the content of "id" with <dtml-var id> id is probably the id of your document or folder. Try to find an other identifier which is not used by zope itself. Regards Tino Wildenhain --On Dienstag, 8. Mai 2001 14:48 +0200 Gitte Wange <gitte@mmmanager.org> wrote:
Hello,
I have run into this weird problem: I am trying to set an option in a select box SELECTED in the id of the option is the same as the value of the select box. The code looks like this: <SELECT NAME="fileid" SIZE="1"> <OPTION VALUE="0">-- Select mediafile --</OPTION> <dtml-in sqlGetMediafiles> <dtml-if fileid> <dtml-if expr="fileid == id"> <OPTION VALUE="<dtml-var id>" SELECTED><dtml-var filename></OPTION> <dtml-else> <OPTION VALUE="<dtml-var id>"><dtml-var filename></OPTION> </dtml-if> <dtml-else> <OPTION VALUE="<dtml-var id>"><dtml-var filename></OPTION> </dtml-if> </dtml-in> </SELECT>
Now when I have selected a file, I can see that the fileid variable is set. Well then the select box should select the file that has that id right?
But it doesn't - it doesn't select anything.
Can anyone help me?
Regards -- ************************ Gitte Wange Jensen
System Squid Developer MMManager Aps +45 29 72 79 72
gitte@mmmanager.org ************************
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )