May be <dtml-if expr="id == warez"> should be <dtml-if expr="id == 'warez'"> (simple quoted) ? FR sajt@amon.hu%internet le 11/06/2001 10:26:45 Pour : zope@zope.org%internet@WTFR cc : Objet : [Zope] dtml-if problem X-Accept-Language: en Errors-To: zope-admin@zope.org X-BeenThere: zope@zope.org X-Mailman-Version: 2.0.5 (101270) Precedence: bulk List-Help: <mailto:zope-request@zope.org?subject=help> List-Post: <mailto:zope@zope.org> List-Subscribe: <http://lists.zope.org/mailman/listinfo/zope>, <mailto:zope-request@zope.org?subject=subscribe> List-Id: Users of the Z Object Publishing Environment <zope.zope.org> List-Unsubscribe: <http://lists.zope.org/mailman/listinfo/zope>, <mailto:zope-request@zope.org?subject=unsubscribe> List-Archive: <http://lists.zope.org/pipermail/zope/> Hello, I have a little problem, but I don't find the solution for it. Here is the code: ----- <form name='ware'> <select name="warez" onChange="document.ware.submit()"> <dtml-if warez> <dtml-in wares> <dtml-if expr="id == warez"> <OPTION VALUE=<dtml-var id> DEFAULT><dtml-var sname> <dtml-else> <OPTION VALUE=<dtml-var id>><dtml-var sname> </dtml-if> </dtml-in> <dtml-else> <dtml-in wares> <OPTION VALUE=<dtml-var id>><dtml-var sname> </dtml-in> </dtml-if> </select> </form> ----- But the <dtml-if expr="id == warez"> is never true. Why it is possible? Thanks for your help. -- Amon Tamas sajt@amon.hu _______________________________________________ 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 )
participants (1)
-
Francois-regis Chalaoux