[Zope] dtml syntax question

Evan Simpson evan@tokenexchange.com
Mon, 8 Nov 1999 16:33:43 -0600


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

----- Original Message -----
From: Sam Gendler <sgendler@teknolojix.com>
> If I have a form field name of "oname:required", in order to allow zope
> to force an entry in that field, how can I access the value of that
> field from javascript.  The normal form.fieldname.value doesn't work,
> since it would look like 'form.oname:required.value' and javascript
> barfs on that.  There must be a solution to this, anyone know what it
> is?

Cheers,

Evan @ 4-am