"Next" button is disabled

"Next" button is disabled

AdelphiaAdelphia Posts: 3Questions: 1Answers: 0

I'm doing server-side processing and my sort, search, etc functions work, but the "Next" button is disabled. My AJAX is returning a JSON object with all of the required parameters, so what gives?

Quick synopsis..

$("table").DataTable({
  processing: true,
  serverSide: true,
  ajax: (ajaxdata, callback, settings)=>{
    $.ajax({
      url: 'data.json',
      data: ajaxdata
    }).done(callback);
  }
});

My server response is something like this...

{
  "draw": 1,
    "recordsTotal": 170523,
      "recordsFiltered": 10,
        "data": [
          [
            "ConquestGraphics",
            "EDDM Widget",
            "1490618613",
            "http://localhost/_home/idescripts/1490618603.php",
            "192.168.0.127"
          ],
          [
            "ConquestGraphics",
            "EDDM Widget",
            "1490618630",
            "http://localhost/_home/idescripts/1490618603.php",
            "192.168.0.127"
          ],
          [
            "ConquestGraphics",
            "EDDM Widget",
            "1490618747",
            "http://localhost/_home/idescripts/1490618603.php",
            "192.168.0.127"
          ]
        ]
}

Answers

  • AdelphiaAdelphia Posts: 3Questions: 1Answers: 0

    Nevermind.. i didn't realize the filtered count was suppsed to be the... filtered.. count.. i thought it was supposed to be the count of the returned rows... fixed that and it works now

  • AdelphiaAdelphia Posts: 3Questions: 1Answers: 0

    I don't know how to close this....

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Glad all working, Adelphia, easy ones are the best. I'll close this off for you.

This discussion has been closed.