Hi Juan,

This works for me:

On the button that submits the form, I put the following event handler in
the ExtraHtml property within Studio:

onClick="return validate()"

The validate() JS function returns a true/false and if it returns false, the
form is not submitted.

Regards,
Anisha


-----Original Message-----
From: Mathew, Aby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 08, 1999 8:06 AM
To: '[EMAIL PROTECTED]';
'[EMAIL PROTECTED]'
Subject: Re: [ND] Stoping ND Web events using JavaScript


Juan,

I haven't found these things well documented anywhere. But I remember some
struggle in the past.

If you say
*** onSubmit="return validate()" ***
and your validate() function returns false, your form will not be submitted.

Saying *** onSubmit=validate()*** will call the validate() function, but
ignore the return value.

Regards,

Aby


> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, April 08, 1999 11:16 AM
> To:   [EMAIL PROTECTED]
> Subject:      [ND] Stoping ND Web events using JavaScript
> 
> I haven't seen anything on "onSubmit()"  in the ND forums and need some
> suggetions.
> 
> I want to stop an ND web_event from triggering upon some condition. 
> 
> According to some of my javaScript documentation, onSubmit() is what I
> want to use.
> However, it always tirggers, even when I return false to stop the
> web_event.. 
> 
> Can anyone provide some direction on this?
> 
> Thanks all
> Juan Devarie
> [EMAIL PROTECTED]
> 
> _________________________________________________________________________
> 
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
> 
> For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to