[Zope] How to reference the list checkbox thru

Martijn Pieters mj@antraciet.nl
Fri, 23 Jul 1999 13:47:12 +0200


At 13:12 23/07/99 , Paul Chung Chee Soong wrote:
>Thanks again. I got you now. But how can I refer the checkbox via
>Javascript. For example, the name of the checkbox is 'pno:list'. I got
>error when refering to it's propoties:-
>   document.myForm.pno[count].value or
>   document.myForm.pno:list[count].value or
>   document.myForm.pno[count]:list.value
>Is that possible??

Some untested options:

document.myForm.elements('pno:list')[count].value
document.myForm.elements('pno:list').items(count).value
document.myForm.elements.items('pno:list', count).value
document.myForm.elements[indexOfFirstCheckbox + count].value




--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------