I'm making a custom tag that needs to change the onsubmit of a certain form.


if I have the following:


<form name="formtest" false;">


and I run js to do an alert:
    alert(formtest.onsubmit);


I get:


function anonymous()
{
return(false);
}


If I change the onsubmit to:
formtest. anonymous() { alert('test'); return(false);
}";


an alert shows that the onsubmit has changed, but it will submit the form as
if the onsubmit is empty.

Steve

-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 5:16 PM
To: CF-Talk
Subject: Re: form onsubmit

Are you saying you want to call additional functions onSubmit ??

If so I'm pretty sure you could have:

<form action="" method="post" >
HTH

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

  ----- Original Message -----
  From: DURETTE, STEVEN J (AIT)
  To: CF-Talk
  Sent: Friday, August 27, 2004 2:11 PM
  Subject: OT: form onsubmit

  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]

Reply via email to