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; How to write value into number:int correctly from javascript? Many thanks, JL.
--On 29. August 2007 14:38:31 +0200 Jaroslav Lukesh <lukesh@seznam.cz> wrote:
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 :-) Andreas
Jaroslav Lukesh wrote:
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; like this: document.forms['form_name']['number:int'].value =1;
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
participants (3)
-
Andreas Jung -
Jaroslav Lukesh -
Peter Bengtsson