Thanks. Figured it was simple enough, but I didn't have any reference books around.
_________________ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -----Original Message----- From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:37 AM To: Struts Users Mailing List Subject: RE: Setting focus on a field that referring to a deed property 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]