kill other request
kill other request
hi
i have this buttom, when user clicks on it, an ajax request lanches.
- $("p#next").click( function() {
p++;
$.ajax({
type: "POST",
url: "content.php",
data: ({'p':p}),
success: function(html){
content_preldr.removeClass('preloader_bar');
content.html(html);
},
beforeSend: function(){
content_preldr.addClass('preloader_bar');
}
});
return false;
})
suppose the user click on the buttom for 2 time time in row, so 2 request send to server, but what is in my is, when user click on it for second time, while first one is in process, second one overwrite previous event, is it possible?