Jquery.noconflict
Jquery.noconflict
BMIUser
Posts: 3Questions: 0Answers: 0
[code]
$(document).ready(function() {
$('#example').dataTable( {
"sPaginationType": "full_numbers"
} );
} );
[/code]
I want to use jquery.noConflict in the above script but not finding the right way do it.
When I use the above code it works but breaks my site as it interfears with the existing jquery.
How Can I use jquery.noconflict in te above code ?
$(document).ready(function() {
$('#example').dataTable( {
"sPaginationType": "full_numbers"
} );
} );
[/code]
I want to use jquery.noConflict in the above script but not finding the right way do it.
When I use the above code it works but breaks my site as it interfears with the existing jquery.
How Can I use jquery.noconflict in te above code ?
This discussion has been closed.
Replies
the noconflict makes Jquery use calls like JQuery() rather than $() because both Prototype and JQuery both use the same $()
If you are having issues it is not due to datatables not using noconflict mode.
see this page for more information: http://api.jquery.com/jQuery.noConflict/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
DataTables example
@import "../../media/css/demo_page.css";
@import "../../media/css/demo_table.css";
$(document).ready(function() {
$('#example').dataTable( {
"sPaginationType": "full_numbers"
} );
} );
<!My HTML Table goes here">
[/code]
[quote] Heres the full code
I am using the alt_pagination example code from the basic_init folder.
[/quote]
Just wanted to know how do I do it in the above code...