TypeError: n is undefined

TypeError: n is undefined

jswaringenjswaringen Posts: 4Questions: 2Answers: 0
edited January 2013 in DataTables 1.9
I'm getting this error on the page before the grid is even loaded. The offending code appears to be the middle line below.

[code]var n = $('div.nav_blocker')[0];
-- n.style.height = $(jqNav).outerHeight()+"px"; --
n.style.width = ($(jqNav).outerWidth()+20)+"px"; [/code]

I'm not declaring height on anything so I'm not sure what's causing it. Any help would be appreciated. I just sold Managment on using this grid instead of our "normal" grid which wasn't doing the job.

Thanks in Advance.

Replies

  • allanallan Posts: 63,389Questions: 1Answers: 10,450 Site admin
    Hi,

    That looks like a line of code from the JSDocs created by my DataTables template. Could you confirm for me where it is that you are seeing this error? Is it in the DataTables documentation? If so, what browser are you using?

    Thanks,
    Allan
This discussion has been closed.