Use document.form_1.elements('element_name') -----Original Message----- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 8:01 PM To: [EMAIL PROTECTED] Subject: Setting focus on a field that referring to a deed property
Okay, I have an object on my ActionForm that is a container object for many other objects. So, within my form you will see a lot of property names like: a.b.c, a.b.d, etc... This works great and all my properties are properly reflected upon, but I'm having a small issue trying to figure out how to set the focus on one of these fields. I also have a an arraylist that I'm populating so some of my fields will be like: a.b.e[0].f, a.b.e[1].f, etc... So, generally you do something like: document.form.field.focus(). Well, I tried this for the non-array case, and the array-based case and both create a javascript error because the field looks as if its trying to access an unknown property. Is there some trick to making JavaScript understand that a.b.c or a.b.e[0].f is the fieldname and not an object? I guess you could say this is more of a general HTML question, but I figured somebody in here has tried to do the same thing. _________________ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
****** Message from InterScan E-Mail VirusWall NT ****** ** No virus found in attached file noname.htm No Virus detected in the attached file(s). ***************** End of message ***************
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]