Latest version with jquery.noconflict
Latest version with jquery.noconflict
khaos
Posts: 47Questions: 11Answers: 0
I have a client site using a platform that has unwisely included jquery in the master pages beyond my reach. I cannot seem to get datatables to work while using the following:
The controling pages are using jq 1.8.3 & jqui 1.9.2
<link href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css" rel="stylesheet" />
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/start/jquery-ui.css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js" type="text/javascript"></script>
<script>var $joe = jQuery.noConflict(true);</script>
<script src="http://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
Can you help me get this going?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
My understanding of the above is that there is no
jQuery
variable available. You would need to modify the DataTables file to support that as it looks forjQuery
(or perhaps more accuratelywindow.jQuery
). Either that or make jQuery available in a variable calledjQuery
.Allan
I have come to realize this is the case. Perhaps, when I have time I will attempt to do this. If I get it working maybe we could fold it into prod.