Uncaught TypeError: Cannot read property 'mData' of undefined(…)
Uncaught TypeError: Cannot read property 'mData' of undefined(…)
thomas96
Posts: 4Questions: 1Answers: 0
I literally have 0 configuration for my table, first time i use this and i get this error:
jquery.dataTables.min.js:90 Uncaught TypeError: Cannot read property 'mData' of undefined(…)
Im using laravel and in the welcome.blade i put this
and add the class to my table
<
table class="dt table table-striped table-responsive">
but immediately it doesnt work
please help
This discussion has been closed.
Answers
Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.
Information on how to create a test page, if you can't provide a link to your own page can be found here.
Thanks,
Allan
there seems to be no way for me to set up a demo because I use blade, which means I use 2 seperate php files for one page. I do have a debug file though: http://debug.datatables.net/aqafok
EDIT: just tried hardcoding the table rows instead of with a blade loop, and it works. So how do i ge to use it with a foreach loop?
I'm afraid I don't even know what "blade" is in this context?
What is the HTML that it generates ("View source")?
Allan
blade as in blade.php. It is used in Laravel
I didn't know that .
Can you answer my second question?
nvm, I used ui-jp instead of javascript. But now on a different topic, when I try to use the bootstrap css the custom sort arrows overlap with the default ones, I just can't get rid of them
What CSS files are you using?