Buttons extension display issue

Buttons extension display issue

msand01msand01 Posts: 54Questions: 24Answers: 1

I have an issue similar to

https://datatables.net/forums/discussion/31476/uncaught-typeerror-cannot-read-property-ext-of-undefined#latest

where I get errors on load, which I suspect are due to an incorrect order, but I am unable to find documentation on this.

Although the colvis, copy, csv, and print buttons display correctly, the exel and pdf do not.
"buttons": ['colvis', 'copy', 'csv', 'excel', 'pdf', 'print'],

and these are the errors I get when the page loads in the latest version of Chrome (Version 46.0.2490.86):

Uncaught TypeError: Cannot read property 'defaults' of undefined
buttons.flash.js:658 Uncaught TypeError: Cannot set property 'swfPath' of undefined
buttons.foundation.js:39 Uncaught TypeError: Cannot read property 'defaults' of undefined
buttons.jqueryui.js:39 Uncaught TypeError: Cannot read property 'defaults' of undefined

Here is the order I currently have included:

                "~/Scripts/jquery.dataTables.min-1.10.10.js",
                "~/Scripts/dataTables.jqueryui.min.js",
                "~/Scripts/datatables.bootstrap.js",
                "~/Scripts/dataTables.colReorder.min-1.3.0.js",
                "~/Scripts/dataTables.autoFill-1.2.1.js",
                "~/Scripts/dataTables.scroller.min.js",
                "~/Scripts/buttons/buttons.bootstrap.js",
                "~/Scripts/buttons/buttons.colVis.js",
                "~/Scripts/buttons/buttons.flash.js",
                "~/Scripts/buttons/buttons.foundation.js",
                "~/Scripts/buttons/buttons.html5.js",
                "~/Scripts/buttons/buttons.jqueryui.js",
                "~/Scripts/buttons/buttons.print.js",
                "~/Scripts/buttons/dataTables.buttons.js"

Also of note, I am using jQuery 2.1.4
Can anyone tell me if I am missing anything or if the order is incorrect? Thank you!!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin

    The order looks okay. Can you link to a test page showing the issue so I can debug it please.

    Allan

  • msand01msand01 Posts: 54Questions: 24Answers: 1

    yes, it will take me a few days but i will

  • msand01msand01 Posts: 54Questions: 24Answers: 1

    Here is the debugger reference: uhabag

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin

    Are you able to give me a link to the page please? I don't immediately see the issue from the debugger.

    Allan

  • gonzalogmg09gonzalogmg09 Posts: 1Questions: 0Answers: 0

    Hi!
    I'm having the same problem as "msand01". Is there any solution?

    Mi code crash at lines like:
    buttons.bootstrap.js

    39 - $.extend( true, DataTable.Buttons.defaults, { ....

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin
    Answer ✓

    Perhaps if you could post a test page that shows the issue I would be able to debug that.

    Allan

This discussion has been closed.