Abort all pending jQuery AJAX requests
AJAX requests will be issued immediately and return at delays of 1, 3, 5, and 7 second intervals. You can hit the Cancel All AJAX button at any time to abort pending AJAX calls.
HTML
<script src="https://raw.github.com/robdmoore/jquery-mockjax/f837ab421e481010148ac0f174e0214068a6180f/jquery.mockjax.js"></script>
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script>
<input type="button" id="getresult" value="getresult" />
JavaScript
$('#getresult').click(function() {
var parameters = {data1:'value1',data2:'value2'};
$.post("getresult.php",parameters,function(msg){
console.log(msg);
},'json');
});