Consider separating your JavaScript from your HTML With this in mind, you could write the handler for your the click event you're trying to intercept like this.
Consider separating your JavaScript from your HTML. With this in mind, you could write the handler for your the click event you're trying to intercept like this: $("button#cancel"). Click(function($event) { var r = confirm("All changes since your last save operation will be discarded."); if (r) { $(".
Ajax"). Unbind("submit"); } else { $event.preventDefault(); } }); You would have to tweak your HTML and add an id attribute to the cancel button: Cancel Example here: jsfiddle.net/wvFDy/ Hope that helps!
Bingo. Many thanks. – technoTarek Dec 11 '10 at 20:04.
I believe you just return false; Let me know if this works.
Unfortunately no, the ajax submission still processes. – technoTarek Dec 11 '10 at 20:05.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.