Datatable buttons compatability with jQuery 1.7.2

Datatable buttons compatability with jQuery 1.7.2

txt1txt1 Posts: 5Questions: 3Answers: 0
edited April 2016 in Free community support

Is it possible to use datatable buttons found here http://www.datatables.net/download/release with jQuery 1.7.2

I'm trying to add a button to my tables that would export to excel but i'm getting the below error in file DataTable.Buttons.min.js at the following line "j.API.register("button")"

JavaScript runtime error: Unable to get property 'register' of undefined or null reference

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,787Questions: 1Answers: 10,511 Site admin
    Answer ✓

    Yes. DataTables and its extensions are compatible with jQuery 1.7+ - see compatibility page.

    The error you are seeing suggest you might have an old version of DataTables on your page.

    Can you provide a link to a test case showing the issue so it can be debugged please.

    Allan

  • txt1txt1 Posts: 5Questions: 3Answers: 0

    @Allan, that was true, downloading the latest version of DataTables resolved the error.

This discussion has been closed.