Confirm OK/Cancel: could not stop processing after redirect
I am have a problem doing a JavaScript confirmation which in a cfinclude file in the process page.
When the display page send content to the process page, and process page first do some validation which is included in a cfinclude file. The issue is user need to choose from a confirmation message box, choose OK to continue processing, Cancel to send user to previous display page. Every thing seems working, except when user choose Cancel and is sent to the previous page, the execution on the process page continues anyway, behind scene though. Without server process validation you may not realize it. but the truth is it does not stop when user choose Cancel.
So I need your insights how to handle the situation: give user choice to choose but when user select Cancel, stop the execution of the code after cfinclude.
Is there anyway to do the message box without JavaScript? If only it could be done in Coldfusion, then the problem solve, by setting a coldfusion variable to stop the execution.
Please help!
Thanks
Jush
