Unable to set property 'copyFlash' of undefined or null reference

Unable to set property 'copyFlash' of undefined or null reference

HankAnzis1HankAnzis1 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

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Your script references don't mention jQuery.js - is that just an error in your post?

  • HankAnzis1HankAnzis1 Posts: 3Questions: 1Answers: 0

    Sorry,I do have references to jquery - it is bundled. we are using version 2.0,3

  • allanallan Posts: 63,745Questions: 1Answers: 10,509 Site admin
    Answer ✓

    DataTables-1.10.4

    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

  • HankAnzis1HankAnzis1 Posts: 3Questions: 1Answers: 0

    Thanks. I ugraded the error went away.

This discussion has been closed.