0
I have this method that searches the data that is in a txt file and populates a table:
$(document).ready(function () {
$('#example').DataTable({
"ajax": "objects.txt",
"columns": [
{ "data": "name" },
{ "data": "position" },
{ "data": "office" },
{ "data": "extn" },
{ "data": "start_date" },
{ "data": "salary" }
]
});
});
How can I modify this method to search for a url, which returns a json?
that is the url: http://localhost:55959/Client/getBydesc
Search for what? Your question is not very clear. Click [Edit] and add more details.
– user28595
Have you tested
"ajax": "http://localhost:55959/Cliente/getBydesc",
?– Sergio
Diego, this url returns a json
– alessandre martins
Substitute
objects.txt
with the URL you want– Giancarlo Abel Giulian
it worked, I did as Sergio and Giacarlo suggested and it worked cool, hug
– alessandre martins