
Untitled
By:
samirfor on
May 2nd, 2012 | syntax:
JavaScript | size: 1.91 KB | hits: 33 | expires: Never
function var_dump(obj) {
if(typeof obj == "object") {
return "Type: "+typeof(obj)+((obj.constructor) ? "\nConstructor: "+obj.constructor : "")+"\nValue: " + obj;
} else {
return "Type: "+typeof(obj)+"\nValue: "+obj;
}
}//end function var_dump
$(document).ready( function () {
$('#tb_nf22').dataTable({
bJQueryUI: true,
"bStateSave" : true,
"bAutoWidth": true,
"iDisplayLength": 15,
"aLengthMenu": [[15,25, 50, 100, -1], [15,25, 50, 100, "Todos"]],
"sPaginationType": "full_numbers",
"aoColumns" : [
null,
null,
null,
null,
{ sClass : "alignRight" }
]
}).makeEditable({
//"sUpdateURL": "ajaxAtualizaDtVencimento.php",
"sUpdateURL": function(value, settings)
{
var_dump(settings);
$.ajax({
url: 'ajaxAtualizaDtVencimento.php',
type: 'POST',
data: {'id' : id, 'value' : value},
success: function(result) {
return result;
} // end of fn success
}); // end of ajax
return(value);
},
//ajaxoptions:{
// type : 'POST'
//},
"aoColumns": [
null,
null,
null,
{
type : 'datepicker',
tooltip : "Clique para editar...",
// indicator : "Salvando...",
indicator : "<img src='../images/snake_transparent.gif'>",
loadtext : 'carregando...',
sSuccessResponse: "IGNORE",
event : "click",
cssclass : "date"
},
null
]
});
} );