Awesome Thanks for all the replies!
At 03:00 PM 1/16/2003 -0500, you wrote:
>Submit
>
>submitHandler(formNumber) {
> formObj = document.forms[formNumber];
> formObj.submit();
>}
>
>Pass the form number in the link...the first form on the page will be
>form 0, the second form 1, etc..
>
>--
>
> Should be simple, I have a page with 10 forms. When a
> link is clicked a handler is called and passed the
> name of the form to submit. I want to use something
> like :
>
> eval('document.'+formNameVar+'.submit()')
>
> to submit the form, but I continually get an error
> saying the object
Submit
submitHandler(formNumber) {
formObj = document.forms[formNumber];
formObj.submit();
}
Pass the form number in the link...the first form on the page will be
form 0, the second form 1, etc..
--
jon
mailto:[EMAIL PROTECTED]
Thursday, January 16, 2003, 2:37:10 PM, you wrote:
bmc> I'm
mit();
}
Chris Lofback
Sr. Web Developer
TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL 33761
www.trxi.com
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 2:37 PM
> To: CF-Talk
> Subject: Way OT: javascrip
ar).submit();
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, January 16, 2003 2:37 PM
: To: CF-Talk
: Subject: Way OT: javascript to submit a form
:
:
: I'm sorry to p
.
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 11:37 AM
> To: CF-Talk
> Subject: Way OT: javascript to submit a form
>
> I'm sorry to post this here but I really need a bit of a hand on this one.
>
MAIL PROTECTED]]
: Sent: Thursday, January 16, 2003 2:37 PM
: To: CF-Talk
: Subject: Way OT: javascript to submit a form
:
:
: I'm sorry to post this here but I really need a bit of a hand on
: this one.
: I've searched the net to no avail.
:
: Should be simple, I have a page with 10 forms.
I'm sorry to post this here but I really need a bit of a hand on this one.
I've searched the net to no avail.
Should be simple, I have a page with 10 forms. When a link is clicked a
handler is called and passed the name of the form to submit. I want to use
something like :
eval('document.'+f
OnClick="document.form.submit(); return true;"
Thats the simple version.
>From: [EMAIL PROTECTED] (Rick Lamb)
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: javascript to submit a form
>Date: Thu, 16 Nov 2000 21:16:37 -0600
>
>
Nicest is myForm.submit(), where myForm is the form's NAME (set in the FORM
tag).
There are many other ways, though. No room in this margin to write the
proof...
Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PRO
This is a multi-part message in MIME format.
--=_NextPart_000_005C_01C05012.824E8030
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Can somebody help me with the syntax to submit a form with an onclick even?
Thanks,
Rick
--=_NextPart_000_005C_01
11 matches
Mail list logo