version compatibility

version compatibility

purplepiemanpurplepieman Posts: 3Questions: 0Answers: 0
edited April 2010 in General
Just curious if there is any guidance on compatibility or conflicts between different versions of jQuery and dataTables.

For example, when using dataTables 1.5.4, if I upgrade the jQuery lib to version 1.4.2, my ajax table breaks. This is true in the ajax examples included with dataTables as well. I saw another forum post about checking the JSON for correctness. I'm just wondering why the examples break.

So for now I am using the version of jQuery that was included with dataTables 1.5.4, but my new UI 1.8 buttons will not work. They work with jQuery 1.4.2, but then the dataTable breaks. You see my dilema?

Should I just upgrade dataTables to 1.6.x, or will this not help? Besides, I'm kind of worried that other code will malfunction.

thanks for any suggestions.

Replies

  • purplepiemanpurplepieman Posts: 3Questions: 0Answers: 0
    If anyone wants to share what combination of libs they are using, that would be cool.

    for example:

    dataTables 1.5.4
    jQuery 1.4.2
    jQuery UI 1.8

    (i don't think this combination is optimal)
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The reason that jQuery 1.4 can cause a number of issues is that the JSON checking is now quite strict. Pevious versions simply did an 'eval()' but now it will check for well formed JSON (assuming you are reading from a JSON source). As such, I would suggest running your JSON through http://jsonlint.com in order to confirm if it is valid or not.

    DataTables will work with both jQuery 1.3 and 1.4. jQuery UI is just another module, so it shouldn't have any effect on DataTables (as long as they all have the required versions / features!).

    Regards,
    Allan
  • purplepiemanpurplepieman Posts: 3Questions: 0Answers: 0
    Ok, I guess I'm worrying too much about versions.

    I will validate my JSON. Thanks for the quick reply.

    Excellent module, btw.
This discussion has been closed.