Serverside Datatable only one work

Serverside Datatable only one work

htetzawphyohtetzawphyo Posts: 5Questions: 1Answers: 0

I have three CRUD. All CRUD code is the same. But, only one CRUD code is working. Another two CRUD are error showing. Error messages is here.Why? Please help me. Sorry for my English grammer. My englis skill is little bad.

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

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    The place to start is to use the troubleshooting steps at the link in the error to see the JSON response:
    http://datatables.net/tn/1

    Let us know what you find.

    Kevin

  • htetzawphyohtetzawphyo Posts: 5Questions: 1Answers: 0
    edited October 2022

    Response is empty bro. Sorry for late my reply

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    Next step is to debug the server script to find out why the response is empty.

    Kevin

  • htetzawphyohtetzawphyo Posts: 5Questions: 1Answers: 0

    Can you help me how I find this debug. Datatable using is my first time and then I'm beginner. As hint can u help me?

  • htetzawphyohtetzawphyo Posts: 5Questions: 1Answers: 0


  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951
    Answer ✓

    I'm not familiar with the language in your first code snippet so won't be able to help there. Someone else might have some ideas. In general you will need to follow the server code to see what is doing and why the response is empty.

    You have server side processing enabled (serverSide). Do you need server side processing? You only need this option if you have large amounts of data that cause performance issues. See the server side processing docs for details. Likely you can remove serverSide: true.

    Kevin

  • htetzawphyohtetzawphyo Posts: 5Questions: 1Answers: 0

    Thanks from Myanmar

Sign In or Register to comment.