[Zope] how to fill form values name:int in javascript?

Andreas Jung lists at zopyx.com
Wed Aug 29 08:52:20 EDT 2007

--On 29. August 2007 14:38:31 +0200 Jaroslav Lukesh <lukesh at seznam.cz> 

> Hi,
> This is typically not zope question, but I does not find solution for
> this  zopiness. I need to fill from javascript form fields with defined
> zope type:
> <input type="text" name="number:int" value="0">
> and how to address it in javascript? This make JS error for me:
> document.forms['form_name'].number:int.value =1;

Ensure that the input element has an id attribute and then use
document.getElementById(...)...basic DOM manipulation :-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070829/574ee8b5/attachment.bin

More information about the Zope mailing list