generate URL with data from json (ajax)

generate URL with data from json (ajax)

carrelcomcarrelcom Posts: 2Questions: 0Answers: 0
edited March 2020 in Free community support

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 :smiley:

Ben

Replies

This discussion has been closed.