Getting error: TypeError: plugin is undefined for _fnFeatureHtmlPaginate() and several others
Getting error: TypeError: plugin is undefined for _fnFeatureHtmlPaginate() and several others
I'm getting the above error when checking the console for several lines in the files that I downloaded from this site.
From the jquery.dataTables.js:
_fnFeatureHtmlPaginate()
_fnAddOptionsHtml()
_fnInitialise()
DataTable/<()
DataTable()
From jquery-2.2.3.js:
.each()
JQuery.prototype.each()
Then from my file:
var table=$('#DataTable').dataTable({
I'm producing the JSON and then converting it into a table. The table usually shows up on the page (though not always) and these errors have started coming up.
I don't know what is going on since I downloaded these from the site and added them to my folder tree. Here's the code that I'm working with at the moment:
<script>
var table=$('#DataTable').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "AjaxHandler.php",
pagingType: "bootstrap_full_number",
"aaSorting": [[0, "desc"]],
"language": {
"lengthMenu": "",
"zeroRecords": "No Messages!",
"infoEmpty": "Empty"
}
});
</script>
I also have this to initialize the DataTable:
<script>
$(document).ready(function() {
$('#DataTable').DataTable(
{
"lengthMenu": [[25,50,75,100,150],[25,50,75,100,150]],
"ScrollX": true,
"dom": '<"top"Biflp<"clear">>rt<"bottom"ip<"clear">>',
buttons: ['selectAll','selectnone','excel'],
buttons: [{extend: 'collection', text: 'Selection', buttons: ['selectAll','selectNone']},{extend: 'collection', text: 'Export', buttons: ['excel','csv','pdf']}],
fixedHeader:{header: true,footer: false},
select: true,
serverSide: true,
ajax: '/ReportPage.php'
});
});
</script>
If more info is needed let me know and I'll add what I can.
This question has an accepted answers - jump to answer
Answers
This is no longer a problem