Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1817

Datatable conflict with Dojo

$
0
0
Hi,

I notice a very annoying conflict between datatable and dojo.js

Trying this simple example :
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojo/dojo.js"></script&gt;
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
 <script type="text/javascript" src="jquery-ui-1.10.3.min.js"></script>
 <script type="text/javascript" src="jquery.dataTables-1.9.4.min.js"></script>
 <script>
	$(document).ready(function() {
		$("#mytable").dataTable();
	});
 </script>
 </head>
 <body>
	<table id="mytable">
		<thead>
			<tr><th>Name</th></tr>
		</thead>
		<tbody>
			<tr><td>Test</td></tr>
		</tbody>
	</table>
 </body>
 </html>

Give me the js error : Uncaught TypeError: Object [object Object] has no method 'dataTable'

p.s : i'm using the Alfresco Share 4.2.0 product that includes dojo.js so i don't have the ability to remove this dependency.

Anybody knows how can i workaround on this ?

Thank you !

Viewing all articles
Browse latest Browse all 1817

Trending Articles