Datatables seems to conflict with other jQuery in website

Datatables seems to conflict with other jQuery in website

hwyckoffhwyckoff Posts: 19Questions: 7Answers: 1

More specifically, datatables won't work without the jquery.js file, which on inspection is version 1.1, and the other jQuery functions I have in my website are runing on jquery 1.6.4. I can have either Data Tables or my other jQuery functions run, but not both at a time. How can I resolve this? The customer wants me to have both.

Can Data Tables run on jQuery 1.6.4?

This question has an accepted answers - jump to answer

Answers

  • hwyckoffhwyckoff Posts: 19Questions: 7Answers: 1
    edited May 2015

    It can't be something that obscure and simple! A full day of banging my head against the all, and it all comes down to wrapping one of the functions with another wrapper I never needed to use before.

    jQuery(function ($) { $(document).ready(function () { $('#NavigationMenu').smartmenus(); }); });

    and in my client page:

    $(document).ready(function () { $('#gvViewItems').DataTable(); });
  • allanallan Posts: 61,692Questions: 1Answers: 10,102 Site admin
    Answer ✓

    Can Data Tables run on jQuery 1.6.4?

    The manual states that jQuery 1.7 or newer is required.

    It might work, but it isn't something I've tested.

    Allan

  • hwyckoffhwyckoff Posts: 19Questions: 7Answers: 1

    I figured out that my question was based on a false premise. It was a jquery language issue with the resolution described above. That's why my two functions seemed to be in conflict.

This discussion has been closed.