Hey Robert,

Nope, one function can't return two values...you could do this though:


<script>
function shouldFormSubmit(form) {
  return(confirm("Are you sure?") && checkform(form));
}
</script>

<form action="getinventory4.cfm" method="POST" onSubmit="return
shouldFormSubmit(this);">

Does that help?

-Joe

On 3/3/06, Orlini, Robert <[EMAIL PROTECTED]> wrote:
> Is there any way to include two return functions in an OnSubmit?
>
> Here is what I want to do: <form action="getinventory4.cfm" method="POST" 
> onSubmit="return confirm('Are you sure?'); return checkform(this);">
>
> Of course it generates an error. But what will work here.
>
> Thx in advance
>
> Robert O.
> HWW
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 268.1.1/273 - Release Date: 3/2/2006
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234120
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to