On May 8, 6:24=A0am, "Tom de Neef" <tden...@[EMAIL PROTECTED]
> wrote:
> "apatheticagnostic" <apatheticagnos...@[EMAIL PROTECTED]
> schreef in
berichtnews:6=
e33ccaa-c601-4e72-9d6d-806a3571dc2d@[EMAIL PROTECTED]
> On May 8, 3:10 am, "Tom de Neef" <tden...@[EMAIL PROTECTED]
> wrote:
>
> > 1) Unless mainform is a variabale you have assigned the value
"mainform"=
> > before, use
> > if (do***ent.forms[f].name =3D=3D "mainform")
>
> : mainform is passed into the function
>
> Yep!
> But then... it is likely passed as a DOM element, not as a string.
> Should=B4nt the conditional then be
> if (do***ent.forms[f] =3D=3D mainform)
> rather than
> if (do***ent.forms[f].name =3D=3D mainform)
>
> or
> if (do***ent.forms[f].name =3D=3D mainform.name)
>
> Tom
I assumed it was a string because of:
do***ent.forms[f].name =3D=3D mainform
and
do***ent.mainform.elements.elname.value
I don't have any idea how it actually is, but if it was passed as a
dom element, these two lines would be different (I would assume)
If it is a string, do***ent[mainform].elements[elname].value may do
the trick.


|