Change two cells when a cell update

Change two cells when a cell update

vvcorralvvcorral Posts: 9Questions: 0Answers: 0
edited May 2011 in Plug-ins
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]

Replies

  • vvcorralvvcorral Posts: 9Questions: 0Answers: 0
    Mi problem is similar to http://datatables.net/forums/comments.php?DiscussionID=2017&page=1#Item_0
    Sorry about my poor english... :(
  • vvcorralvvcorral Posts: 9Questions: 0Answers: 0
    Hi all another time!,

    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
This discussion has been closed.