jQuery version compatibility?

jQuery version compatibility?

davidericksondaviderickson Posts: 4Questions: 0Answers: 0
edited July 2011 in DataTables 1.8
Hi all, we are using jQuery 1.4.2, is it compatible with the 1.8 release train of DataTables? I'd prefer not to have to revalidate the rest of my site by having to upgrade the rest of my libraries to get the latest DataTables.

Thanks!

Replies

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    Yes - jQuery 1.4.2 will work just fine with DataTables. You start to run into limitations with 1.3.x, and it simply won't work with 1.2.x - but the version you have will do just fine.

    Allan
  • davidericksondaviderickson Posts: 4Questions: 0Answers: 0
    Great thanks! Might be useful to put this info on the downloads page or somewhere prominent if possible.
  • davidericksondaviderickson Posts: 4Questions: 0Answers: 0
    allan: noticed the following error from Chrome when doing a refresh on DataTables with JQ 1.4.2:

    Uncaught TypeError: Cannot set property 'jqXHR' of undefined
    i.fn.dataTable.fnServerDatajquery.dataTables.min.js:40
    $.fn.dataTableExt.oApi.fnReloadAjax:8080/:104
    i.fn.dataTable.djquery.dataTables.min.js:42
    DataTableWrapper.buttonAutoRefresh.$.button.icons.primarybeacon.js:105
    c.event.handle
    jquery-1.4.2.min.js:55
  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    A couple of things to check - are you using DataTables 1.8.x with the latest fnReloadAjax (it must be passing oSettings as the forth argument to fnServerData). That seems like the most likely thing to me.

    Allan
  • davidericksondaviderickson Posts: 4Questions: 0Answers: 0
    Nice catch, that did it. Thanks!
This discussion has been closed.