Eddie Bush wrote the following on 4/12/2005 12:42 AM:
I personally handle this by having a javascript variable called "isCancelled" which I initialize to false. The onclick handler for my cancel button sets it to true. In my validation JavaScript, I check for this value first thing off the bat.
When I have a cancel button I usually want to go somewhere or reset things. So I just go back to the server when you hit cancel. Just use a regular submit button or if you could even use a plain old button or image with a javascript handler to submit the form.
I think his initial problem might be that he doesn't want validation to occur when the cancel submits? I've worked around this using the ValidationActionForm but I still, once again, find it much better to simply validate from your Action. Cleaner and you can handle things a lot better (ie make sure things repopulate your request correctly etc).
-- Rick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]