[Zope] Javascript vs. Zope

Roelof Naudé roelof.naude@epiuse.com
Wed, 27 Oct 1999 16:54:34 +0200


> > Javascript (in NS4 at least) cannot have ":"s in element 
> > names.  Which means
> > that I can't do
> > 	document.formname.text:float.value = 3
> > 
> > Are there any possible workarounds, or I just can't use Zope 
> > types in form
> > fields if I want to access them with Javascript?
> 
> How about:
> 
> 	document.formname['text:float'].value = 3
> 
> (untested)
> 
> I'm still learning JS, but I think that should work.
> 
>
Try document.formname.elements[indexOfElement].value = 3


Regards
Roelof