Server-side child rows fetching

Server-side child rows fetching

vishvavishva Posts: 2Questions: 1Answers: 0

Can anyone show me a simple example of using a call to the db to retrieve data for a child row?

Answers

  • FuriousProgrammerFuriousProgrammer Posts: 1Questions: 0Answers: 0
    edited March 2018

    Here's an example using jquery post:

    $.post('path/to/server-side-script/', {'id':1}, result(){ dataTable.row.add( [ '', result.key1, result.key2, ... ] ).draw( false ); }, 'json');

    Please do let me know if this is what you were looking for

This discussion has been closed.