Non capisco il motivo per cui DataTable sta gettando questo errore in FF: TypeError: e [j] è indefinitoJQuery DataTables Plugin: TypeError: e [j] è indefinito
In IE è riportato come: Impossibile ottenere proprietà 'aDataSort' di riferimento non definito o null
Ecco il codice
HTML
<table id="fp_promotion_history">
<thead>
<tr>
<th>AuditID</th>
<th>Action</th>
<th>Description</th>
<th>User Name</th>
<th>Audit Date</th>
</tr>
</thead>
<tbody>
<tmpl_loop name='fp_history'>
<tr id="AuditID_<tmpl_var name='AuditID'>">
<td data-AuditID="<tmpl_var name='AuditID'>"><tmpl_var name='AuditID'></td>
<td data-Action="<tmpl_var name='Action'>"><tmpl_var name='Action'></td>
<td data-Audit_Desc="<tmpl_var name='Audit_Desc'>"><tmpl_var name='Audit_Desc'></td>
<td data-User_Name="<tmpl_var name='User_Name'>"><tmpl_var name='User_Name'></td>
<td data-Audit_Date="<tmpl_var name='Audit_Date'>"><tmpl_var name='Audit_Date'></td>
</tr>
</tmpl_loop>
</tbody>
</table>
JQuery
showDialog({content:data,title:'Financial Promotion Audit Trail History (FPID : ' + $('#fp_promotions_table tr.selected').attr('id') + ')'});
// turn into a datatable
$('#fp_promotion_history').dataTable({
"sDom": 'R<"H"fr>t<"F"ip>',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 25,
"order": [[ 5, "desc" ]]
});
Quello che non capisco è che ho già un datatable sulla pagina che funziona bene.
Faccio una chiamata AJAX, visualizzo il risultato (una tabella) con la finestra di dialogo dell'interfaccia utente JQuery, ma quando provo a trasformarlo in un DataTable, si tratta solo di errori?
La documentazione implica più tabelle è OK: http://legacy.datatables.net/release-datatables/examples/basic_init/multiple_tables.html
Così che cosa sto facendo di sbagliato?
Grazie, 1DMF
incredibile che nel 2017 non hanno rivisto questo in modo da generare un errore più leggibile. – billynoah