Warning message when the user clicks several times on the paging button

Warning message when the user clicks several times on the paging button

DanvalDanval Posts: 1Questions: 1Answers: 0

Hello,
I have a datatable with ajax pagination, when you click several times in the pagination button it shows an ajax error.
When I open the ajax error, the response has all the records:

I tried disabling the button after it is clicked but the problem persists:
.on('draw',function(){
$(".paginate_button.previous").click(function(){
$(this).attr('class','paginate_button previous disabled');
});
$(".paginate_button.next").click(function(){
$(this).attr('class','paginate_button next disabled');
});
});

What could be the problem?.. thanks

Answers

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin

    Hi,

    Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Allan

This discussion has been closed.