TypeError: Cannot set property 'width' of undefined

TypeError: Cannot set property 'width' of undefined

reddoreddo Posts: 6Questions: 0Answers: 0
edited March 2014 in DataTables 1.10
Hi. I get the following error when using datatables on a table:

[code]TypeError: Cannot set property 'width' of undefined [/code]

from dataTables.fixedColumns.min.js:27

DataTables Debugger

http://debug.datatables.net/aqokel

dataTables live:

http://live.datatables.net/taxudug/2/

I checked and double checked to have the same number of columns everywhere, I do have thead, tbody and tfoot defined, the cells in the thead and tfoot are all 'th's

Replies

  • reddoreddo Posts: 6Questions: 0Answers: 0
    Anyone?
  • allanallan Posts: 54,909Questions: 1Answers: 8,606 Site admin
    I'm afraid I'm not seeing that error in your test case. i'm using Safari 7. Does it only occur in a particular browser?

    The errors I am seeing are:

    [code]
    [Error] Error: Syntax error, unrecognized expression: a[data-toggle=popover
    [Error] ReferenceError: Can't find variable: remoteWindow
    [/code]

    Allan
  • reddoreddo Posts: 6Questions: 0Answers: 0
    I've updated the testcase, I had an error while I copied over the code:

    http://live.datatables.net/hipilix/2/

    I'm currently using Chrome.

    The exact error I'm getting is:

    `Uncaught TypeError: Cannot set property 'width' of undefined dataTables.fixedColumns.nightly.min.js?_=b05e6fcc5f5be1e9c9cc732c1c5b4d3c:27`

    It was the same when I used the released version of fixedColumns instead of the nightly.

    With firefox I get `TypeError: this.style is undefined` on the same line (27) of fixedColumns.

    Also the columns in the header and footer are misaligned in safari... I might have more problems that a simple script error :/
  • allanallan Posts: 54,909Questions: 1Answers: 8,606 Site admin
    Thanks for the updated test case! The script error you are seeing appears to be caused by FixedColumns handling of the footer. It isn't coping with the colspan in the first cell of the footer. I need to look into how to resolve that. I'll try to do so as soon as I can.

    Not sure why it isn't working in Safari - I see that issue as well, but not in Chrome. That will take a bit of debugging unfortunately. I'll look at the colspan issue first, hopefully later today, depending on how things go!

    Allan
  • reddoreddo Posts: 6Questions: 0Answers: 0
    Great! Thanks for the fast reply, you do some awesome work!
This discussion has been closed.