27 Oct
1999
27 Oct
'99
2:54 p.m.
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