obj.event = function() {foo(goo)};
Doug
----- Original Message -----
From: DURETTE, STEVEN J (AIT) <[EMAIL PROTECTED]>
Date: Fri, 27 Aug 2004 17:35:07 -0400
Subject: RE: OT: form onsubmit
To: CF-Talk <[EMAIL PROTECTED]>
Ok,
I tried:
<script language="_javascript_1.2" type="test/_javascript_" defer="onload">
function myFunc() {
alert("test");
return(false);
}
document.getElementById("#attributes.formname#").> </script>
When the page loads, the test alert box pops up, but when I do an alert on
#attributes.formname# it gives the original information all over again as if
nothing changed.
Steve
-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 5:17 PM
To: CF-Talk
Subject: Re: OT: form onsubmit
_javascript_ event handlers aren't lines of code, they are function
definitions. When setting the event handers with HTML attributes, you
just specify the body of the function, and the rest is taken care of
automatically. When you specify the event handlers with _javascript_,
you need to actually assign it a function:
function myFunc() {
// do whatever
}
document.getElementById("formID").>
OR
document.getElementById("formID"). {
// do whatever
};
cheers,
barneyb
On Fri, 27 Aug 2004 17:11:18 -0400, DURETTE, STEVEN J (AIT)
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is there anyway to edit the value that is in the onsubmit portion of a
form
> tag? I know you can to formname.action="" to change the
action,
> but I need to change the onsubmit and I can't get it to work.
>
> Every time I change it, it acts like there is nothing there.
>
> Thanks,
> Steve
>
>
_____________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

