[Zope] Javascript vs. Zope

Dom Mitchell Dom.Mitchell@palmerharvey.co.uk
Wed, 27 Oct 1999 15:21:51 +0100


> -----Original Message-----
> From: Itamar Shtull-Trauring [mailto:itamars@ibm.net]
> Sent: Wednesday, October 27, 1999 3:21 PM
> To: zope@zope.org
> Subject: [Zope] Javascript vs. Zope
> 
> 
> 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.

-Dom


-- 
**********************************************************************
This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. 
The email has been swept by MIMEsweeper for the presence of computer viruses.

www.palmerharvey.co.uk
**********************************************************************