Change two cells when a cell update
Change two cells when a cell update
Hi!
I'm working with datatables and editable plugin, and i can't do something that it would be easy...!
When i do an UPDATE in a cell, i need to update other 2 cells at the same time, but i don't know how...
anybody can help me please? Thanks ;)
[code]
$(document).ready(function(){
$('#activos').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers"
}).makeEditable({
sAddURL:"activos.htm?nuevo",
sDeleteURL: "activos.htm?borrar",
sDeleteHttpMethod: "POST",
sUpdateURL: "activos.htm?actualizar",
aoColumns: [
{// what i should write here to update this cell and the next one processing the value of the update?},
{},
{}
});
});
[/code]
I'm working with datatables and editable plugin, and i can't do something that it would be easy...!
When i do an UPDATE in a cell, i need to update other 2 cells at the same time, but i don't know how...
anybody can help me please? Thanks ;)
[code]
$(document).ready(function(){
$('#activos').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers"
}).makeEditable({
sAddURL:"activos.htm?nuevo",
sDeleteURL: "activos.htm?borrar",
sDeleteHttpMethod: "POST",
sUpdateURL: "activos.htm?actualizar",
aoColumns: [
{// what i should write here to update this cell and the next one processing the value of the update?},
{},
{}
});
});
[/code]
This discussion has been closed.
Replies
Sorry about my poor english... :(
i have discovered wich function i should use in the editable plugin:
[code]
fnOnEdited: function(status){
// Actions to do after updating a cell
}
[/code]
My question is, how can i obtain in these function the row id where cell have been updated? I can´t find something like fnGetRowId or something like that :S