IE8 Invalid Argument error with FixedColumns.js
IE8 Invalid Argument error with FixedColumns.js
I 'm having some problems with the FixedColumn plugin in IE8. It works fine in Firefox but I need to fix this issue in IE8.
Its distorting my datatable when there are no records. Error is as below.
Message: Invalid argument.
Line: 528
Char: 3
Code: 0
URI: ./resources/javascript/dataTable/FixedColumns.js
I am using FixedColumns.js 2.0.3 version
Any help would be appreciated!!
Its distorting my datatable when there are no records. Error is as below.
Message: Invalid argument.
Line: 528
Char: 3
Code: 0
URI: ./resources/javascript/dataTable/FixedColumns.js
I am using FixedColumns.js 2.0.3 version
Any help would be appreciated!!
This discussion has been closed.
Replies
Allan
I tried to search for dev version. Can you please provide me the link where I can get it.
Thanks!!
I got the FixedColumns version 2.5.0.dev. And after using this JS my error is gone in IE8.
But I want to know what causes the issue. Earlier I was getting error on Line528 of version 2.0.3 version
fnGridSetup": function ()
....//Below line have invalid argument error
this.dom.grid.dt.style.width = ($(this.dom.grid.dt).width()-this.s.iLeftWidth-this.s.iRightWidth)+"px";
Can I apply any piece of code to my existing FixedColumns.js 2.0.3 version?
Allan
SCRIPT87: Invalid argument.
FixedColumns-2.0.3.js, line 938 character 4
$(anUnique).each( function (i) {
iColumn = aiColumns[i];
this.style.width = that.s.aiWidths[iColumn]+"px"; // line 938
} );
It only happens in IE8. Newer IE versions are alright.
I'll have a look for your other post in the spam filter... :-)
Allan
this.dom.grid.dt.style.width = ($(this.dom.grid.dt).width()-this.s.iLeftWidth-this.s.iRightWidth)+"px";
by
$(this.dom.grid.dt).css("width",$(this.dom.grid.dt).width()-this.s.iLeftWidth-this.s.iRightWidth);
It's fixed in IE8! :)
I changed
//oGrid.dt.style.width = iRemainder+"px";
$(oGrid.dt).css("width",iRemainder);
too.
Y fixed all! :)