Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Re: help - can ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 35520 of 37133
Post > Topic >>

Re: help - can anyone tell me how to get this code snippet to work

by apatheticagnostic <apatheticagnostic@[EMAIL PROTECTED] > May 8, 2008 at 11:28 AM

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.
 




 6 Posts in Topic:
help - can anyone tell me how to get this code snippet to work
lawrencef@[EMAIL PROTECTE  2008-05-07 18:28:59 
Re: help - can anyone tell me how to get this code snippet to wo
apatheticagnostic <apa  2008-05-07 19:22:08 
Re: help - can anyone tell me how to get this code snippet to wo
"Tom de Neef" &  2008-05-08 09:10:59 
Re: help - can anyone tell me how to get this code snippet to wo
apatheticagnostic <apa  2008-05-08 02:01:48 
Re: help - can anyone tell me how to get this code snippet to wo
"Tom de Neef" &  2008-05-08 12:24:47 
Re: help - can anyone tell me how to get this code snippet to wo
apatheticagnostic <apa  2008-05-08 11:28:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 6:04:07 CDT 2008.