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: <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.


Try this:

<form action="getinventory4.cfm" method="POST" onSubmit="return 
(confirm('Are you sure?') &&  return checkform(this))">

The first function will be executed and, if OK, the second one will.

Regards,

Roberto Perez 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234126
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