Cannot read property 'style' of undefined
Cannot read property 'style' of undefined
vivekbhusal
Posts: 1Questions: 1Answers: 0
probably related with
http://datatables.net/forums/discussion/19874/uncaught-typeerror-cannot-read-property-style-of-undefined-while-using-colspan
but it's not exactly same. I am getting this error on Android chrome (Only tested on chrome, but multiple devices)
Message: Cannot read property 'style' of undefined
at Ga line 59, column 69 (https://www.example.org/vendor/datatables/datatables/media/js/jquery.dataTables.min.js?ver=c783dd:59)
at X line 11, column 13 (https://www.example.org/vendor/datatables/datatables/media/js/jquery.dataTables.min.js?ver=c783dd:11)
at ? line 60, column 277 (https://www.example.org/vendor/datatables/datatables/media/js/jquery.dataTables.min.js?ver=c783dd:60)
at ? line 61, column 16 (https://www.example.org/vendor/datatables/datatables/media/js/jquery.dataTables.min.js?ver=c783dd:61)
at e line 4, column 245 (https://www.example.org/wp-content/plugins/raygun4wp/external/raygun4js/dist/raygun.min.js:4)
at m.event.dispatch line 3, column 8436 (https://www.example.org/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,quicktags,plupload,json2&ver=4.1.5:3)
at r.handle line 3, column 5146 (https://www.example.org/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,quicktags,plupload,json2&ver=4.1.5:3)
The problem occurs when I scroll up and down through the web but I think datatables is trying to reconstruct the table after it is visible in screen when i scroll up and down. I have tested with version 1.9 and 1.10
This discussion has been closed.
Answers
Per the forum rules, please link to a test case showing the issue. I don't know what HTML your table is using, so I'm not sure if it is even supported.
Allan
Hello,
I had the same problem and i think it's the same for the old post here (http://datatables.net/forums/discussion/19874/uncaught-typeerror-cannot-read-property-style-of-undefined-while-using-colspan)
The number of columns don't match : in the post 5 <th> and 6 <td> and in my case different numbers of columns definition in the javascript file and in the html...
Hope it helps...