FixedHeader - initial issues

FixedHeader - initial issues

adamadam Posts: 11Questions: 0Answers: 0
edited March 2010 in FixedHeader
Hi

I've just added the FixedHeader plugin to my table. It works straight out the box, but I'm getting the following issues:

1) The headings are wider than the originals
2) When I click on a heading to sort by that column - it works but - I get the following JS error:

[code]
that is not defined
[Break on this error] });jQuery("thead th",a).click(function...nction(d){var c=this.fnGetSettings();
[/code]

Which relates to (in FixedHeader.js)
[code]
jQuery("thead th",a).click(function(){that._fnCloneThead(d).call(that)})},_fnCloneTfoot:function(d){var c=this.fnGetSettings();
[/code]

I'm using FF3.6 on XP.

Is anyone else having these issues?

Replies

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin
    Hi adam,

    Could you say which version of FixedHeader you are using? v2.0.1 which was released last week might address your second point. It seems to work okay here in Firefox 3.6 certainly: http://datatables.net/release-datatables/extras/FixedHeader/index.html .

    For the first issue - this obviously shouldn't happen, but the width calculation is a bit trick in tables - so I might have missed something. Could you post an example of this occurring? Likely it will be paddings or margins or cell spacing etc.

    Allan
  • rhartrhart Posts: 4Questions: 0Answers: 0
    edited April 2010
    I seem to have the same problem, also getting
    [code]that is not defined[/code]
    it only occurs for me in IE, Firefox works fine.

    And I used the latest version of FixedHeader

    For me it goes wrong in this line of code

    [code] jQuery('thead th', nTable).click( function () {
    that._fnCloneThead( oCache ).call(that);
    } ); [/code]
  • rhartrhart Posts: 4Questions: 0Answers: 0
    okay, fixed it. Noticed the download is v2.0.1 but on your example page v2.0.2 is used. With that version it is solved.
This discussion has been closed.