struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcelo Vanzin <va...@rededc.com.br>
Subject Re: Nested properties and javascript
Date Thu, 23 Aug 2001 15:06:50 GMT
SRadford@Agora.co.uk wrote:

> However,
> JScript doesn't appear happy with objects having dots in their names (it
> naturally thinks that you mean a 'subobject' of an object). Anyone have any
> ideas on how to get around this? (apart from not using nested FormBeans?)


	You could use something like this in DOM 0:


	document.myForm.elements['my.weird.name'].myProperty

	Should work.

	Or you could use DOM Level 1/2's getElementById() method, and assign a 
valid "id" attribute to each form object.



-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
vanza@rededc.com.br
"We're an underground revolution working overtime"


Mime
View raw message