Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 2556 invoked by uid 500); 23 Aug 2001 15:07:16 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 2537 invoked from network); 23 Aug 2001 15:07:15 -0000 Received: from unknown (HELO srvtouch.rededc.com.br) (@200.246.179.24) by h31.sny.collab.net with SMTP; 23 Aug 2001 15:07:15 -0000 Received: from rededc.com.br (CORAL [10.0.0.145]) by srvtouch.rededc.com.br with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id RDGRVYAX; Thu, 23 Aug 2001 12:11:46 -0300 Message-ID: <3B851C0A.8080302@rededc.com.br> Date: Thu, 23 Aug 2001 12:06:50 -0300 From: Marcelo Vanzin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: fr, en, pt-br MIME-Version: 1.0 To: struts-user@jakarta.apache.org Subject: Re: Nested properties and javascript References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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"