v1.7.0 - highlight error after sorting (ff 3.0)

v1.7.0 - highlight error after sorting (ff 3.0)

stefanstefan Posts: 6Questions: 0Answers: 0
edited August 2010 in General
hi Allan,

great work :)

i have a little problem with FireFox 3.0.1 and the colum highlight-function. after selecting an other colum the first selectet colum still highlighted (in IE it works)
this error can be found also in the zero configuration example. after clicking all colums the first 3 colums highlighted but the last 2 not?!

hopefuly it helps :) and sorry for bad spelling my germen spelling is also bad but the sentens make more sence ;)

Stefan

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Do you mean this column highlight: http://datatables.net/examples/api/highlight.html ? It seems to be working as far as I can see. Perhaps you could explain a little more about the problem?

    Allan
  • stefanstefan Posts: 6Questions: 0Answers: 0
    sure. highlighting for the actual sorted column, affected by bSortClasses.
    the previous sorted column won't be set to default style and after some clicks (in the header) all columns are darker. (in ff 3.6 it works too)
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I'm afraid I'm not quite clear on what the problem is. Does this example work for you: http://datatables.net/examples/basic_init/zero_config.html . Or is it the interaction between the highlight example and the sort classes? If the later, then I think it's just a case of figuring out the right combination of classes and CSS definitions needed - which the demo hasn't done...

    Allan
  • stefanstefan Posts: 6Questions: 0Answers: 0
    the problem is in the zero_config.html (and my own table)

    when I load the page, the first column 'Rendering engine' is highlighted. a bit darker then the ohters. after clicking 'Browser' the second column should be darker and the first normal, but the first column is still darker. after clicking 'Platform(s)' the first 3 columns darker an so on.

    but strange is that in the zero_config.html it workes for 'Engine version' and 'CSS grade'. these columns go back to default. in my zeroconfig all columns stay darker
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sounds like an odd one... I'm not seeing this problem. If I load this page - http://datatables.net/examples/basic_init/zero_config.html - and click the 'Browser' column, is does indeed go darker.

    Are you seeing any Javascript errors? If you open Firebug and point it at a cell in the second column, what class does it have? And what class does the first column cells have?

    Thanks,
    Allan
  • stefanstefan Posts: 6Questions: 0Answers: 0
    maybe I found the problem. an empty class will not set back to empty

    [code]



    Rendering engine
    Browser
    Platform(s)
    Engine version
    CSS grade




    Gecko
    Firefox 1.0
    Win 98+ / OSX.2+
    1.7
    A

    Gecko
    Firefox 1.5
    Win 98+ / OSX.2+
    1.8
    A

    [/code]


    after clicking 'Browser'

    [code]



    Rendering engine
    Browser
    Platform(s)
    Engine version
    CSS grade




    Other browsers <!-- hear is the problem. should be only TD -->
    All others
    -
    -
    U

    [/code]


    and after clicking all columns

    [code]



    Rendering engine
    Browser
    Platform(s)
    Engine version
    CSS grade



    Trident
    Internet Explorer 5.5
    Win 95+
    5.5
    A

    Trident
    Internet Explorer 6
    Win 98+
    6
    A

    [/code]

    but it seems to be a minor problem only in older FF versions
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hmmm - interesting one... It seems that only Firefox 3.0 (and before perhaps?) suffer from this - 3.1. addressed it. Basically it will do a 'trim' on the string when setting the class name - while the new ones will not. At the moment I'm putting this down to a bug in Firefox 3.0, but I'm trying to think if there is a good way of fixing this. I'll add it to the to do list, for the 1.7.1 release to check this out and see if there is an elegant solution. Thanks for flagging it up :-)

    Allan
This discussion has been closed.