JSON php server side response

JSON php server side response

rainolfrainolf Posts: 56Questions: 6Answers: 0
edited October 2013 in DataTables 1.9
Hi to all,
i'm trying to setup a datatables with server side processing in json format but the format i need to have is something like:

{ "aaData": [
{"Name": "John Doe","Age": "19","School": "Temple" }
]}

Starting with the server side example published can anyone pointing me on the right way?

Thank you

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Do you actually want server-side processing: http://datatables.net/usage/server-side

    If so, this example show get you started: http://datatables.net/release-datatables/examples/server_side/object_data.html

    Allan
  • rainolfrainolf Posts: 56Questions: 6Answers: 0
    Thank you Allan,
    i've followed the example however i'm not able to produce the right server side response.

    In the first link u mentioned it speaks about 2 type of data response:
    I'm trying to achieve the second one.
    I read about DT_RowId and DT_RowClass but i'm not fully understand how to insert it in the code.

    Thank you
This discussion has been closed.