Datatables seems to conflict with other jQuery in website
Datatables seems to conflict with other jQuery in website
hwyckoff
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
This discussion has been closed.
Answers
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(); });The manual states that jQuery 1.7 or newer is required.
It might work, but it isn't something I've tested.
Allan
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.