Cannot read property '_buttons' of undefined
Cannot read property '_buttons' of undefined
beerygaz
Posts: 16Questions: 9Answers: 0
I'm getting the following error in my JS console:
datatables.min.js:220 Uncaught TypeError: Cannot read property '_buttons' of undefined
at m._constructor (datatables.min.js:220)
at new m (datatables.min.js:216)
at HTMLDocument.<anonymous> (table.area.js:32)
at i (datatables.min.js:21)
at Object.fireWith [as resolveWith] (datatables.min.js:21)
at Function.ready (datatables.min.js:21)
at HTMLDocument.K (datatables.min.js:21)
.NET MVC, copied and pasted the JS, controller, model, etc. I have another view working perfectly but can't for the life of me see why this one is not.
Any sage advice would be welcome.
This discussion has been closed.
Answers
I solved this, it was a case issue with the table name (id="Area") in the HTML and the reference in the document.ready function (#area) - tough one to track down form the error message though.
Thanks for posting back - good to hear you've got it working.
I'll have a think about how I might be able to catch that and throw a custom error.
Allan