Unable to set property 'copyFlash' of undefined or null reference
Unable to set property 'copyFlash' of undefined or null reference
HankAnzis1
Posts: 3Questions: 1Answers: 0
I'm trying to add flash buttons to an existing app using datatables and am getting the error 'Unable to set property 'copyFlash' of undefined or null reference'. Am I using the wrong version?
<script src="~/Scripts/DataTables-1.10.4/jquery.dataTables.js"></script>
<link href="~/Content/DataTables-1.10.4/css/jquery.dataTables.css" rel="stylesheet" />
<script src="~/Scripts/DataTables-1.10.4/dataTables.fixedHeader.js"></script>
<link href="~/Content/DataTables-1.10.4/css/dataTables.tableTools.css" rel="stylesheet">
<script src="~/Scripts/DataTables-1.10.4/dataTables.tableTools.js"></script>
<link href="~/Content/Buttons-1.0.3/css/buttons.dataTables.css" rel="stylesheet">
<script src="~/Scripts/Buttons-1.0.3/js/dataTables.buttons.js"></script>
<script src="~/Scripts/Buttons-1.0.3/js/buttons.flash.js"></script>
Thanks in advance
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Your script references don't mention jQuery.js - is that just an error in your post?
Sorry,I do have references to jquery - it is bundled. we are using version 2.0,3
That's the issue. Buttons requires a newer version of DataTables. 1.10.9 is the current version - if you update it should work.
Allan
Thanks. I ugraded the error went away.