RE: SOT: Two functions in OnSubmit

2006-03-03 Thread Orlini, Robert
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

Re: SOT: Two functions in OnSubmit

2006-03-03 Thread Roberto Perez
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

Re: SOT: Two functions in OnSubmit

2006-03-03 Thread Joe Rinehart
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

Re: SOT: Two functions in OnSubmit

2006-03-03 Thread Ben Doom
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

RE: SOT: Two functions in OnSubmit

2006-03-03 Thread Dave Sueltenfuss
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?