FixedHeader plugin doesn't work
FixedHeader plugin doesn't work

Hello there! I tried to add the FixedHeader plugin to my Datatable by adding the css and js files
<script type="text/javascript" src="https://cdn.datatables.net/fixedheader/3.1.7/js/dataTables.fixedHeader.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/fixedheader/3.1.7/css/fixedHeader.dataTables.min.css"/>
and then by doing:
$(document).ready(function() {
...
fixedHeader: true
...
});
but the console says
dataTables.fixedHeader.min.js:29 Uncaught TypeError: Cannot set property 'FixedHeader' of undefined
Why is that?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Your CDN links and
fixedHeader: true
work here:http://live.datatables.net/kalebazo/1/edit
Make sure you are loading FixedHeadr.js after datatables.js. If this doesn't help please post a link to your page or update my example to show the issue.
Kevin
That was it! Thanks!