generate URL with data from json (ajax)
generate URL with data from json (ajax)
carrelcom
Posts: 2Questions: 0Answers: 0
Hello everybody,
I need your Help.
I use this script to populate my html table :
$(document).ready(function() {
$('#mytable').DataTable( {
"ajax": "http://...../xxx.json",
"columns": [
{ "data": "id" },
{ "data": "name" },
{ "data": "surname" }
]
} );
} );
I'd like to display in the first column not the Id but an url dynamicaly built with the id (http://...../index.php?url=id).
Help
Ben
This discussion has been closed.
Replies
Use
columns.render
for this. I believe the docs show an example.Kevin
Thanks @kthorngren. I'm going to check that.