I’m trying to run two pieces of code within the $(document).ready(function() { of jquery. But the code :
$.ajax({
url: 'getallurls'
});
is not being called when I add :
$('#example').dataTable({
"sPaginationType": "full_numbers"
});
To :
$(document).ready(function() {
$('#example').dataTable().makeEditable({
sDeleteURL: "/deleteRow"
});
$('#example').dataTable( {
"sPaginationType": "full_numbers"
});
Here is the complete code snippet :
$(document).ready(function() {
$('#example').dataTable().makeEditable({
sDeleteURL: "/deleteRow"
});
$('#example').dataTable({
"sPaginationType": "full_numbers"
});
$.ajax({
url: 'getallurls', ...............
});
});
You are making two calls to
.dataTable(), which it won’t like. Try this:Demo: http://jsfiddle.net/jtbowden/cfJys/