Thanks Roberto and all for your input.
-Original Message-
From: Roberto Perez [mailto:[EMAIL PROTECTED]
Sent: Friday, March 03, 2006 3:47 PM
To: CF-Talk
Subject: Re: SOT: Two functions in OnSubmit
At 03:30 PM 3/3/2006, Orlini, Robert wrote:
>Here is what I want to do: method=&q
At 03:30 PM 3/3/2006, Orlini, Robert wrote:
>Here is what I want to do: method="POST" onSubmit="return confirm('Are you sure?'); return
>checkform(this);">
>
>Of course it generates an error. But what will work here.
Try this:
The first function will be executed and, if OK, the second one wi
Hey Robert,
Nope, one function can't return two values...you could do this though:
function shouldFormSubmit(form) {
return(confirm("Are you sure?") && checkform(form));
}
Does that help?
-Joe
On 3/3/06, Orlini, Robert <[EMAIL PROTECTED]> wrote:
> Is there any way to include two return
Inset your confirm() into your checkform() function? Write a wrapper
for both?
--Ben
Orlini, Robert wrote:
> Is there any way to include two return functions in an OnSubmit?
>
> Here is what I want to do: onSubmit="return confirm('Are you sure?'); return checkform(this);">
>
> Of course it g
I'd suggest building 1 function that references both functions
-Original Message-
From:Orlini, Robert [EMAIL PROTECTED]
To: "CF-Talk" ;
Sent: Mar 3, 2006 03:32:09 PM
Subject: SOT: Two functions in OnSubmit
Is there any way to include two return functions in an OnSubmit?
5 matches
Mail list logo