Server-side processing row details - how to start?

Server-side processing row details - how to start?

culterculter Posts: 102Questions: 24Answers: 0

I have working server-side processing DataTable and now I need to load another details after click on row. I have primary key in the table and based on this key, I want to display these additional data.
I'm trying to use this
https://datatables.net/examples/server_side/row_details.html

but contrary to https://datatables.net/blog/2017-03-31 , there is no other .php script to load data. Can I use this solution with server-side or not?

Answers

  • tangerinetangerine Posts: 3,348Questions: 36Answers: 394

    The "format" function in the blog example shows how you would make an ajax call to retrieve data. You need to provide the file called by the "url" parameter.

  • culterculter Posts: 102Questions: 24Answers: 0

    Thank you, tangerine. I'm using the server-processing.php script I downloaded here to load the main table. Can I just copy this script, modify the data and use it in the ajax request for row details?

This discussion has been closed.