[Zope] dtml syntax question
Kevin Dangoor
kid@kendermedia.com
Mon, 8 Nov 1999 21:21:43 -0500
I think Evan meant that you would do this in JavaScript itself.
<script language=JavaScript>
if (form['oname:required'].value == 'foo') {
do something;
}
</script>
----- Original Message -----
From: Sam Gendler <sgendler@teknolojix.com>
To: Phil Harris <phil.harris@zope.co.uk>
Cc: Evan Simpson <evan@tokenexchange.com>; <zope@zope.org>
Sent: Monday, November 08, 1999 8:49 PM
Subject: Re: [Zope] dtml syntax question
> So what do I do, <dtml-var form['oname:required'].value> would seem the
> logical choice for syntax. Correct?
>
> --sam
>
> Phil Harris wrote:
>
> > so try it, trust Evan ;)
> > ----- Original Message -----
> > From: Sam Gendler <sgendler@teknolojix.com>
> > To: Evan Simpson <evan@tokenexchange.com>
> > Cc: <zope@zope.org>
> > Sent: Tuesday, November 09, 1999 1:02 AM
> > Subject: Re: [Zope] dtml syntax question
> >
> > > Evan Simpson wrote:
> > > >
> > > > JScript attributes are also dictionary items, so you can set/access
> > > > attributes whose names aren't legal identifiers using the
dictionary
> > > > syntax:
> > > >
> > > > form['oname:required'].value