Buttons Won't Work

Buttons Won't Work

Restful Web ServicesRestful Web Services Posts: 202Questions: 49Answers: 2

I cannot seem to get the new 'buttons' extension to work and I am not sure why. I previously used tabletools and that worked fine. I have uploaded the new js files, css and edited the javascript.

If I open the console I see the following error "Uncaught TypeError: Cannot read property 'innerHTML' of null @ dataTables.buttons.min.js:30"

Can anyone help me out?

Thanks

Answers

  • Restful Web ServicesRestful Web Services Posts: 202Questions: 49Answers: 2

    Found the answer in case it helps anyone. I had an erroneous table row within my footer. That seemed to make the buttons extension stop working.

    <tfoot> <tr></tr> </tfoot>

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    Hi,

    Thanks for letting me know about this. I think Buttons should also cope with this. I'll add a fix and comment back here when done.

    Regards,
    Allan

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    Quick update - Buttons 1.0.1 which has now been released will accept such input.

    Allan

This discussion has been closed.