serverside show an alert error

serverside show an alert error

user12user12 Posts: 17Questions: 4Answers: 0

serversite when is true shows me this error

DataTables warning: table id=dataTableSnd - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1

I try to fetch just 1000 record for now.

Answers

  • user12user12 Posts: 17Questions: 4Answers: 0

    this is the script i use

    $('#dataTableSnd').DataTable( {
    processing: true,
    serverSide: true,
    ordering: false,
    searching: false,
    paging: true,
    lengthChange: false,
    

    and this is larvel controller

    $test = Table::skip(0) ->take(1000) ->get(); // 1000 just for now but will be linke this
    $test = Table::all();

    and this is how i fetch on blade larvel
    <td> {{ $test->id ?? '' }} </td>

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    The link provided in the error message provides diagnostic steps for the error.

  • user12user12 Posts: 17Questions: 4Answers: 0

    I have cecked but i dont understand where exactly is problem?

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

    This is a duplicate of this thread - please don't repeat threads,

    Colin

Sign In or Register to comment.