Microsoft JScript runtime error: 'length' is null or not an object

Microsoft JScript runtime error: 'length' is null or not an object

radudamiradudami Posts: 2Questions: 0Answers: 0
edited April 2010 in Bug reports
Hi

I'm trying to use the DataTables plugin (which is great, by the way) with ASP.MVC2, but when I try to load the table I get "Microsoft JScript runtime error: 'length' is null or not an object" on:

[code]
/* See if we should load columns automatically or use defined ones - a bit messy this... */
var nThead = this.getElementsByTagName('thead');
var nThs = nThead.length===0 ? null : _fnGetUniqueThs( nThead[0] );
var bUseCols = typeof oInit.aoColumns != 'undefined';

for ( i=0, iLen=bUseCols ? oInit.aoColumns.length : nThs.length ; i

Replies

  • radudamiradudami Posts: 2Questions: 0Answers: 0
    Problem solved. I didn't specify the attribute.

    Thanks!
This discussion has been closed.