Error jQuery not defined
Error jQuery not defined
Hi, again using dataTable, I m download the version 1.7.0, copy the jquery.dataTables.js y jquery.js into my project and import this js in my jsp. In my jsp I have a table and this code:
$(document).ready(function() {
$('#example').dataTable( {
"sPaginationType": "scrolling"
} );
} );
Browser
Platform(s)
Engine version
CSS grade
Internet
Explorer 4.0
Win 95+
4
X
Internet
Explorer 5.0
Win 95+
5
C
When I ' m show my page, this not show the elements to dataTables and in the browser's error console see an error that said, jQuery is not defined, in the jquery.dataTables.js.
How can resolve this problem? I need import other js? where is defined the variable jQuery that appaer in jquery.dataTables.js.?
Thanks.
$(document).ready(function() {
$('#example').dataTable( {
"sPaginationType": "scrolling"
} );
} );
Browser
Platform(s)
Engine version
CSS grade
Internet
Explorer 4.0
Win 95+
4
X
Internet
Explorer 5.0
Win 95+
5
C
When I ' m show my page, this not show the elements to dataTables and in the browser's error console see an error that said, jQuery is not defined, in the jquery.dataTables.js.
How can resolve this problem? I need import other js? where is defined the variable jQuery that appaer in jquery.dataTables.js.?
Thanks.
This discussion has been closed.
Replies
DataTables is a plugin for jQuery (the javascript library)
..Your Code here...
This is because the dataTables.js file needs to use what is in the jQuery.js file in order to load.
So all you need to do is swap the order:
Hope this helps