jquery 1.9

jquery 1.9

FParsonsFParsons Posts: 18Questions: 3Answers: 0
edited December 2012 in General
Hi! I noticed that the upcoming jquery 1.9 has some changes that could break some plugins - has data tables been tested with it yet?

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    I've just done some basic tests and yes, it appears DataTables works no problem with 1.9. Back with jQuery 1.8 came out I made a few little changes based on their roadmap, to take the changes that were coming into account.

    If you do notice any issue, please do open a new thread with details of the problem.

    Allan
  • leflefleflef Posts: 2Questions: 0Answers: 0
    Hi!

    I've found one minor issue: the jQuery.browser is completly removed in 1.9, so FixedHeader.js fails on this line

    [code]
    /* Detect browsers which have poor position:fixed support so we can use absolute positions.
    * This is much slower since the position must be updated for each scroll, but widens
    * compatibility
    */
    s.bUseAbsPos = (jQuery.browser.msie &&
    (jQuery.browser.version=="6.0"||jQuery.browser.version=="7.0"));
    [/code]

    Lars Erik
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Agreed - some of the plug-ins use $.browser so I need to go through them and sort that out. I'm likely to just drop support for old IE.

    Allan
  • jasminejasmine Posts: 6Questions: 0Answers: 0
    If you are going to support old IE please give a branch or a plugin that restores some functionality, DataTables is the best plugin of this type and calibre, but a majority of our users still use 7, so we have to continue to support it for the foreseeable future. In the very least highlight and make sure that this fact is obvious and well known, so that people can select the appropriate version for their needs.

    Otherwise, I think that is the right call for moving forward.
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    > In the very least highlight and make sure that this fact is obvious and well known, so that people can select the appropriate version for their needs.

    I think this is the key here. I think it will be a case of releasing major new versions of DataTables and each of its plug-ins when that change is made. Old versions would still be downloadable, but not supported and would not have the newer features of the updated software. In some cases, the major new version might simply be stripping of old IE support, which I will likely do along side DataTables 1.10.

    I haven't decided to do this yet, but it is a very attractive proposition, given how much time it takes to work around some of the obscure bugs that old IE throws up.

    Allan
  • BollardBollard Posts: 10Questions: 0Answers: 0
    Has there been any update on this? I would very much appreciate it if you would release an update to remove the use of jQuery.browser. I am facing some errors in the Chrome Console with FixedHeader.

    Thank you
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Already fixed in the nightly version: http://datatables.net/download/

    Allan
  • BollardBollard Posts: 10Questions: 0Answers: 0
    Great thank you very much. Any idea of a release date?
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    For which plug-in in particular? Major updates will be after DataTables 1.10, while minor releases (like today's TableTools release) can be done ad-hoc.

    Allan
  • BollardBollard Posts: 10Questions: 0Answers: 0
    For any plugin which uses jQuery.browser (i think its just FixedHeader which I'm using) - ie, any ideas when the fix in the FixedHeader nightly will move to release?

    Thanks again
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    FixedHeader is one of the bigger changes since it will be moving from 2.0.x to 2.1.0. There are a number of changes to the cloning and I'd like as many as possible to try it out. You'd be doing us all a favour if you were to try it out and report back any issues you encounter!

    There are no known issues at the moment, but likely this will be released alongside DataTables 1.10 - which is probably at least a month off due to my current commitments.

    Allan
This discussion has been closed.