[Zope] Image button values

Phil Harris phil@media-1.ml.uwcm.ac.uk
Wed, 10 Mar 1999 14:53:22 -0000


Thanks for the suggestion Martijn but I've already tried that and it does
indeed show variables of the form 'answerbtn.x'.  But when I try to access
them using one of:

<!--#var answerbtn.x--> or
<!--#var _['answerbtn.x']--> or
<!--#var _.getitem('answerbtn.x')-->

I get a traceback error, so I am none the wiser 8^(

Thanks anyway

Any other ideas?

Phil
phil@media-1.ml.uwcm.ac.uk


----- Original Message -----
From: Martijn Pieters <mj@antraciet.nl>
To: Phil Harris <phil@media-1.ml.uwcm.ac.uk>; <zope@zope.org>
Sent: Wednesday, March 10, 1999 2:47 PM
Subject: Re: [Zope] Image button values


>At 15:29 10/03/99 , you wrote:
>>Hi all,
>
>>I'm using some image buttons and am having trouble getting the return
values
>>for them.
>
>>I have a button called answerbtn and the return values would be
'answerbtn.x'
>>and 'answerbtn.y', I need to check one of these values to check whether
this
>>button was pressed.
>
>>I have tried _['answerbtn.x'] but I get a traceback from Zope.
>
>>Any Ideas?
>
>Try::
>
>   <PRE><!--#var REQUEST.form--></PRE>
>
>or::
>
>   <!--#in "REQUEST.form.items()"-->
>      <LI><!--#var sequence-key-->: <!--#var sequence-item-->
>   <!--#else-->
>      No form items
>   <!--#/in-->
>
>To generate an overview of all form variables your DTML has access to.
>
>
>
>--
>M.J. Pieters, Web Developer
>| Antraciet http://www.antraciet.nl
>| Tel: +31-35-6254545 Fax: +31-35-6254555
>| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
>| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
>------------------------------------------
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(For developer-specific issues, use the companion list,
>zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )