Server-side child rows fetching
Server-side child rows fetching
vishva
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?
This discussion has been closed.
Answers
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