Microsoft JScript runtime error: 'length' is null or not an object
Microsoft JScript runtime error: 'length' is null or not an object
![radudami](https://secure.gravatar.com/avatar/07fa3d320ecbb3563c8ed189c251e786/?default=https%3A%2F%2Fvanillicon.com%2F07fa3d320ecbb3563c8ed189c251e786_200.png&rating=g&size=120)
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
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
This discussion has been closed.
Replies
Thanks!