http://datatables.net/tn/4
http://datatables.net/tn/4
Hello,
I am trying to set up a table using your example "Always Shown Chexbox". I have copied the scripts and adapted it to match mysql table. When I run my script I get this error: DataTables warning: table id=example - Requested unknown parameter 'operador' for row 0, column 0. I went through the explanation in tn/4 but frankly I don't get it.
Maybe you could have a look: arquigprs1.com/ss_casetas.php
the mysql table has these columns: id,autopista,operador,caseta,iave,ubiKm,lat,lon,link,tramo,distance,active but I only use these: operador,caseta,iave,ubiKm,link,active. Aall the cells are text and have data in it.
Many thanks for your help
Yves
This question has an accepted answers - jump to answer
Answers
Your JSON data looks like this:
But in Datatables you defined the columns like this:
The only name that matches is "active". The error is stating it can't find an object called "operador". Instead of object names like "first_name", "last_name", etc you need to return objects with the names that match your Datatables config like "operador", "caseta", etc.
Kevin
Hello Kevin,
Thanks for your analisis.
The problem is that I did'nt do any JSON script
I only use the HTML script + the php script that's all.
Where does the JSON part comes from?
I got it. I have to modify the checkbox.php script also.
Thanks for showing me the way.
Yves