A little late to this thread. But Dave is right.
Let's look at it this way, there are many ways to submit. But each and every method is because an event was fired to do so, just that using the onClick event on the input type of submit, is a way to override the event. And as you mentioned to return true will fire the event and return false will abort / cancel the thread. I would look at a routine that was pure validation, then you could fire the event (your choosing) then decide on the method to validate. Most Ajax frameworks with validation work in this manner, the best thing is that the code is open for reuse and minimises the duplication of code as well. Just symantecs is what it comes down too. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -----Original Message----- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Wednesday, 6 June 2007 7:34 AM To: CF-Talk Subject: Re: SOLVED? Re: Method=GET received as POST by CF >>No, but it's a little ambiguous, since your event handler calls the submit method if I read the thread accurately. No, it doesn't. If the onClick event returns false, the click on the submit button is cancelled, then ther is no submit, if it returns true, the submit proceeds normally. I don't call submit(). For instance, I have forms to edit some items. Two submit buttons, one to confirm, this one calls the validation function, the other one to delete the item, and this one of course needs no validation. The purpose of this procedure is to force users to see what they want to delete before they delete it. The only problem is when a user press the Return key, which would normally trigger the submit without calling the validation function. But I had to inhibit the return key on any field except text areas anyway, because I have some users moron enough to press Return in text fields because they want to have several lines ;-) -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282299 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

