[Zope] javascript and ZPT
Eugen Nedelcu
eugen@sifolt.ro
Thu, 19 Dec 2002 09:06:05 +0200
On Thu, Dec 19, 2002 at 12:26:00AM +0100, Dieter Maurer wrote:
> eugen@sifolt.ro writes:
> > ...
> > <td><input type="checkbox" name="c_row:list:int" tal:attributes="value
> > row/id"></td>
> > ......
> >
> > but in this case I dont now how to handle javascript.
> Javascript supports both atribute access as well as subscription syntax.
>
> When you want to access an attribute with a name containing characters
> invalid in names, you can use:
>
> object['attribute_name']
>
>
>
> Dieter
I need to access an object like this: document.form[0].element_name
where element_name is a group of checkboxes fields which contains
invalid characters.
AFAIK when a form contains a group of checkboxes with the same name,
they ar placed in an array, and may be referenced like this:
form.checkbox_name[i]
form.elements['name'][j]
Could you be more specific with your solution?