DataTales fixedColumns is not working
DataTales fixedColumns is not working
I want to execute my index.php with the associated script.js.
But is not working
What should be wrong?
index.php
<html>
<head>
<title>Cuadrante de Visitas</title>
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/fixedcolumns/3.3.2/js/dataTables.fixedColumns.min.js">
<link rel="stylesheet" type="text/css" href="DataTables/datatables.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css" />
</script>
</head>
<body>
Cuadrante de Visitas
ID | Oscar | Elena | Carmen | Garijo | Nacho | Prado | Juan | Ondina | Marta | Cristobal | Angeles | Gerardo | Antonio | Gaspar | Raquel | Victor | Reyes | Vanesa |
---|
<br />
<br />
</body>
</html>
script.js
$(document).ready(function(){
var dataTable = $('#personal').DataTable({
"paging": false,
"fixedHeader": true,
"language": {
"url": "cdn.datatables.net/plug-ins/1.10.24/i18n/Spanish.json" },
"fixedColumns": {
leftColumns: 1
},
"bFilter": false,
"bInfo": false,
"processing" : true,
"serverSide" : true,
"responsive": true,
"order" : [],
"ajax" : {
url:"datos.php",
type:"POST"
}
});
$('#personal').on('draw.dt', function(){/Oscar``Elena``Carmen``Garijo``Nacho``Prado``Juan``Ondina``Marta``Cristobal``Angeles``Gerardo``Antonio``Gaspar``Raquel``Victor``Reyes``Vanesa
/
$('#personal').Tabledit({
url:'edicion.php',
dataType:'json',
columns:{
identifier : [0, 'idp'],
editable:[[1, 'Oscar'], [2, 'Elena'], [3, 'Carmen'],[4, 'Garijo'],[5, 'Nacho'],[6, 'Prado'],[7, 'Juan'],[8, 'Ondina'],[9, 'Marta'],[10, 'Cristobal'],[11, 'Angeles'],[12, 'Gerardo'],[13, 'Antonio'],[14, 'Gaspar'],[15, 'Raquel'],[16, 'Victor'],[17, 'Reyes'],[18, 'Vanesa']]
},
restoreButton:false,
onSuccess:function(data, textStatus, jqXHR)
{
if(data.action == 'delete')
{
$('#' + data.idp).remove();
$('#personal').DataTable().ajax.reload();
}
}
});
});
});
Answers
Duplicate of your other thread, please don't post same question multiple times.
Colin