IE8 Invalid Argument error with FixedColumns.js

IE8 Invalid Argument error with FixedColumns.js

ManuSManuS Posts: 4Questions: 0Answers: 0
edited August 2013 in General
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!!

Replies

  • allanallan Posts: 63,277Questions: 1Answers: 10,424 Site admin
    Can you link to a page showing the error please. Do my demo pages show the issue (I don't have an IE8 machine to hand at the moment)? Also - try using the dev version from git.

    Allan
  • ManuSManuS Posts: 4Questions: 0Answers: 0
    Sorry Allan, I cant link to the page..its an internal application. I am also a new bie to Datatable.

    I tried to search for dev version. Can you please provide me the link where I can get it.

    Thanks!!
  • ManuSManuS Posts: 4Questions: 0Answers: 0
    Hi Allan,

    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?
  • allanallan Posts: 63,277Questions: 1Answers: 10,424 Site admin
    I must admit, I'm really not sure what is wrong with that line - it looks like it should do! Good to hear that it works in the development version though!

    Allan
  • ManuSManuS Posts: 4Questions: 0Answers: 0
    Thanks a lot Allan!!
  • ArtjomArtjom Posts: 48Questions: 0Answers: 0
    When the table is empty I also have an error in IE8 but at the different line

    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.
  • ArtjomArtjom Posts: 48Questions: 0Answers: 0
    Any feedback? Also I have opened another topic about a different issue that was targeted for review and haven't appeared on a message board afterwards :). Allan, perhaps you see it somewhere.
  • allanallan Posts: 63,277Questions: 1Answers: 10,424 Site admin
    If its fixed in the development version, then I'm considering it fixed already. There isn't going to be another 2.0.x release, FixedColumns is moving on to 2.5.x. Anyone is welcome to back port the fix if they want!

    I'll have a look for your other post in the spam filter... :-)

    Allan
  • patri2310patri2310 Posts: 1Questions: 0Answers: 0
    I replace

    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! :)
This discussion has been closed.