TypeError: n is undefined
TypeError: n is undefined
jswaringen
Posts: 4Questions: 2Answers: 0
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.
[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.
This discussion has been closed.
Replies
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