Render not working on live website
Render not working on live website
lavania
Posts: 10Questions: 4Answers: 0
in DataTables
this is my part of code it is working perfect on localhost but not on live website
var projects = [
{ label: 'MY 1', value: 1 },{ label: 'MY 2', value: 2 },{ label: 'MY 3', value: 3 },{ label: 'MY 4', value: 4 }];
{ data: 'my_other_id', className: 'editable', render: function (data, type, row) {return projects.find(o => o.value === data).label;} },
This question has an accepted answers - jump to answer
Answers
What exactly is not working?
Are there differences in the data?
Do you get errors in the browser's console?
What troubleshooting steps have you used?
Its impossible to provide suggestions with the code snippets you provided and not know what the problem is. I would start by debugging the
columns.render
function to see what its doing. To help debug we will need to see the problem. Please post a link to your page or test case that replicates the issue.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
This is the output on local host, on live site it wont load the data
https://live.datatables.net/fakaceni/1/edit
The test case has lots of errors and doesn't run so we can't debug the error you are having.
Typically when
Loading...
is displayed there is a Javascript error. What errors do you get in the browser's console?Kevin
You are wonderful, It helped me.
the returned value was string, I converted it to number and issue solved.
Thanks a lot again