using AJAX and Server-side script table not loading, getting infinite loading.
using AJAX and Server-side script table not loading, getting infinite loading.
![Vishnu460](https://secure.gravatar.com/avatar/d1f7ee48a2ea511bf465e7d99b8e2881/?default=https%3A%2F%2Fvanillicon.com%2Fd1f7ee48a2ea511bf465e7d99b8e2881_200.png&rating=g&size=120)
the issue is not found jquery.datatables version 1.10.19 but the issue is available from 1.10.20 onwards I have debugged and found that the below change causing this issue
code from 1.13.5
if ( draw !== undefined ) {
// Protect against out of sequence returns
if ( draw*1 < settings.iDraw ) {
return;
}
settings.iDraw = draw * 1;
}
code from 1.10.19
if ( draw ) {
// Protect against out of sequence returns
if ( draw*1 < settings.iDraw ) {
return;
}
settings.iDraw = draw * 1;
}
I have reverted this change in 1.13.5 and the issue was resolved and the table loaded
Actually, draw value for both cases is 0
could you please check and correct this logic?
Answers
Check this thread for the same question. The server script should never return draw = 0. See the Server Side Processing protocol docs for details of how the
draw
parameter is used.Kevin