Thread Starter
8oris
(@8oris)
Ok, problem solved thanks to my JS expert colleague.
So here’s the content of the wordpress page:
[wp-datatable id="webradio-table"]
paging: false,
responsible: true,
search: true,
stateSave: true,
ajax: { url :"/dlweb-doc/webradio_test.json", type : "GET"},
columns: [
{ "data": "URL", "title" : "URL"},
{ "data": "public", "title" : "public" }
]
[/wp-datatable]
<table id="webradio-table"/>
Here’s the data:
{
"data" :
[
{
"URL": "4urock.com",
"public": "tous publics"
}
,
{
"URL": "77fm.net",
"public": "tous publics"
},
{
"URL": "78fm.net",
"public": "tou publics"
}
]
}
-
This reply was modified 8 years, 5 months ago by 8oris.
Thread Starter
8oris
(@8oris)
Thanks, i use the first option, it works perfectly! Thanks for your kind and faster-than-light answer! ^^