"fnDrawCallback": function () { /* $('#dt_tramites_archivados tbody td').editable( '..', { "callback": function( sValue, y ) { Redraw the table from the new data on the server oTableTramitesArchivados.fnDraw(); }, "height": "20px" } ); */ $(".user_nombre").css("background-color","rgba(0, 255, 0, 0.5)"); }, "fnRowCallback": function( nRow, aData, iDisplayIndex ) { $('td:eq(0)', nRow).html(""); $('td:eq(2)', nRow).html(''); },+aData.legajo + '">' + aData.nombre + '
jueves, 11 de abril de 2013
jQuery DataTables: Edit tabla con server processing
Etiquetas:
datatable,
edicion inline,
edit inline,
fnDrawCallback
PH: Comparar de fechas
$fecha_inicio = "2013-02-13 00:00";
$fecha_fin = "2013-02-19 23:59";
$cHoy = new DateTime();
$minimo= new DateTime($fecha_inicio);
$maximo = new DateTime($fecha_fin);
if( $minimo <= $cHoy && $cHoy <= $maximo){
}else{
if( $cHoy < $minimo ){
echo "El formulario estará habilitado a partir del ". $minimo->format('d/m/Y ');
}else{
echo "El periodo de inscripción ha finalizado.";
}
die();
}
?>
martes, 19 de marzo de 2013
Datatable: ordenar por Fecha
jQuery.fn.dataTableExt.oSort['fecha-asc'] = function(a,b) { var ukDatea = a.split('/'); var ukDateb = b.split('/'); var x = (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1; var y = (ukDateb[2] + ukDateb[1] + ukDateb[0]) * 1; return ((x < y) ? -1 : ((x > y) ? 1 : 0)); }; jQuery.fn.dataTableExt.oSort['fecha-desc'] = function(a,b) { var ukDatea = a.split('/'); var ukDateb = b.split('/'); var x = (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1; var y = (ukDateb[2] + ukDateb[1] + ukDateb[0]) * 1; return ((x < y) ? 1 : ((x > y) ? -1 : 0)); };
en el datatable:
"sType": "fecha"
lunes, 18 de febrero de 2013
martes, 15 de enero de 2013
viernes, 9 de noviembre de 2012
jQuery: Test Time Entry
$(".entry_hora").timeEntry({ ampmPrefix: ' ', spinnerImage: 'spinnerDefault.png' });
Test Online.
http://jsfiddle.net/ric47121/9QkpK/
Web Oficial:
http://keith-wood.name/timeEntry.html
Etiquetas:
hora,
jquery,
time,
time entry,
time picker
lunes, 29 de octubre de 2012
ExtJs 4: test tree Panel
test online:
http://jsfiddle.net/ric47121/JZ4a4/3/
con listener itemcontextmenu:
http://jsfiddle.net/e7KtQ/2/
propiedades de los nodos:
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.NodeInterface
http://jsfiddle.net/ric47121/JZ4a4/3/
con listener itemcontextmenu:
http://jsfiddle.net/e7KtQ/2/
propiedades de los nodos:
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.NodeInterface
Suscribirse a:
Entradas (Atom)