Re: Struts 1.2.x, How reference form.field if disallows form Name attribute?

2006-06-30 Thread Mississippi John Hurt
Thanks for the help! On 6/30/06, David Durham <[EMAIL PROTECTED]> wrote: Mississippi John Hurt wrote: > Hi, > no longer allows "name" attribute. Problem is I have javascript > that refers to a field on the form by the formName.fieldName. So now I > get a > javascript error. If I can no longer

Re: Struts 1.2.x, How reference form.field if disallows form Name attribute?

2006-06-30 Thread David Durham
Mississippi John Hurt wrote: Hi, no longer allows "name" attribute. Problem is I have javascript that refers to a field on the form by the formName.fieldName. So now I get a javascript error. If I can no longer assign a name to the form, then the big question is how can I refer to a field on

Re: Struts 1.2.x, How reference form.field if disallows form Name attribute?

2006-06-30 Thread Vantuir Muniz
Hi, Try this field document.forms[0].elements[field].value select var codUnidade = document.forms[0].codunidadegestor.options[document.forms[0].codunidadegestor.selectedIndex].value; Vantuir Muniz On 6/30/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: Hi, no longer allows "name" att

Struts 1.2.x, How reference form.field if disallows form Name attribute?

2006-06-30 Thread Mississippi John Hurt
Hi, no longer allows "name" attribute. Problem is I have javascript that refers to a field on the form by the formName.fieldName. So now I get a javascript error. If I can no longer assign a name to the form, then the big question is how can I refer to a field on that form in javascript?? Help!