javascript - TypeError C is undefined datatables -


i'm trying render data ajax datatable, seems i'm missing something, because displays error: typeerror: c undefined.

i've read post, datatables typeerror: c undefined, solution given hasn't solved problem. have idea me? thank you.

html code:

<table id="itineraridetailtable" class="table table-sm table-striped table-bordered" style="font-size: x-small;">                         <thead class="thead-inverse">                             <tr>                                 <th>id</th>                                 <th>codi</th>                                 <th>descripció</th>                                 <th>temporada</th>                                 <th>districte</th>                                 <th>barri</th>                                 <th>c. treball</th>                                 <th>g. servei</th>                                 <th>t. servei</th>                                 <th>máquina</th>                                 <th>corretorn</th>                                 <th>torn</th>                                 <th>tipus día</th>                                 <th>equips</th>                                 <!-- <th>jornades</th>                                 <th>cost unitari</th>                                 <th>t. itinerari</th>                                 <th>escenario</th> -->                                                           </tr>                         </thead>                         <tfoot>                             <tr>                                 <th>id</th>                                 <th>codi</th>                                 <th>descripció</th>                                 <th>temporada</th>                                 <th>districte</th>                                 <th>barri</th>                                 <th>c. treball</th>                                 <th>g. servei</th>                                 <th>t. servei</th>                                 <th>máquina</th>                                 <th>corretorn</th>                                 <th>torn</th>                                 <th>tipus día</th>                                 <th>equips</th>                                 <!-- <th>jornades</th>                                 <th>cost unitari</th>                                 <th>t. itinerari</th>                                 <th>escenario</th> -->                                                           </tr>                         </tfoot>                     </table> 

js code:

$('#itineraridetailtable').datatable( {         "processing": true,         "serverside": true,         "ajax":{             "url":'/escenaris/selectbyid',             "type":'get',             "data": function(d){                 d.idescenari = $('#idescenari').val();                               }         },         "order": [[ 0, "asc" ]],         "columns": [             { "data": "iditinerari" },             { "data": "codiitinerari" },             { "data": "descripcio" },             { "data": "temporada.coditemporada" },             { "data": "districte" },             { "data": "barri" },             { "data": "centretreball" },             { "data": "grupservei" },             { "data": "tractamentrecursos" },             { "data": "maquinacombustible" },             { "data": "corretorn" },             { "data": "torn" },             { "data": "tipusdia" },             { "data": "nombreequips" }             /*{ "data": "frequencia" },             {"data": "resultatitinerari.costunitari", "defaultcontent": "0" },             { "data": "tipusitinerari.coditipusitinerari" }/*,                                       { "data": "escenari.idescenari" }           */           ]     }); 


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -