TypeError: p is undefined
TypeError: p is undefined

Hi all,
Whatever I try to do I get this error: TypeError: p is undefined.
I have tried everything on the side, these files are included now;
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css"/>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
I am only using this to do the ColReorder.
Thanks in advance, all help is much appreciated.
Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It doesn't look like you are including the ColReorder Extension code. You can use the Download Builder to build the proper set of files. If this doesn't help then we ill need a link to your page or a test case replicating the issue to help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
I do not even use colReorder yet. This is what is in my code:
$(document).ready( function () {
$('#realTable').dataTable();
} );
If I add these 2 lines:
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.20/cr-1.5.2/datatables.min.css"/>
I get:
jQuery.Deferred exception: p is undefined La@https://cdn.datatables.net/v/dt/dt-1.10.20/cr-1.5.2/datatables.min.js:49:476
R@https://cdn.datatables.net/v/dt/dt-1.10.20/cr-1.5.2/datatables.min.js:41:448
https://cdn.datatables.net/v/dt/dt-1.10.20/cr-1.5.2/datatables.min.js:42:57
https://code.jquery.com/jquery-3.4.1.min.js:2:1505
map@https://code.jquery.com/jquery-3.4.1.min.js:2:3367
map@https://code.jquery.com/jquery-3.4.1.min.js:2:1473
pa@https://cdn.datatables.net/v/dt/dt-1.10.20/cr-1.5.2/datatables.min.js:42:22
e@https://cdn.datatables.net/v/dt/dt-1.10.20/cr-1.5.2/datatables.min.js:118:15
https://cdn.datatables.net/v/dt/dt-1.10.20/cr-1.5.2/datatables.min.js:118:198
each@https://code.jquery.com/jquery-3.4.1.min.js:2:2777
each@https://code.jquery.com/jquery-3.4.1.min.js:2:1419
q@https://cdn.datatables.net/v/dt/dt-1.10.20/cr-1.5.2/datatables.min.js:108:388
http://localhost:5932/databases/getTable?location=%2Fhome%2Flaurent%2Fdatamundi%2Fjobs%2Ftse%2F56-entr-327.tse&table=EXTDIR:1047:21
e@https://code.jquery.com/jquery-3.4.1.min.js:2:29453
https://code.jquery.com/jquery-3.4.1.min.js:2:29755
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
This has been fixed now. I had 2 table bodys and this is apperently not supported. Would you know by coincidence how to disable all dataTables functionality except for the colReorder?
There are many options for this depending on what you want to disable. You can look at
ordering
,searching
and thedom
to remove elements you don't want to show, for example,dom: 't'
will just show the table.Kevin