2012-08-01 107 views
2

我有这样的一段代码...Jeditable +数据表+服务器端处理

$(document).ready(function() { 
    var oTable = $('#example').dataTable({ 
    "bProcessing": true, 
    "bServerSide": true, 
    "sAjaxSource": "../listagem/listar_manuais.php", 
    "sPaginationType": "full_numbers", 
    "fnDrawCallback": function() { 
     $('td', this.fnGetNodes()).editable('update.php', { 
      "callback": function(sValue, y) { 
       var aPos = oTable.fnGetPosition(this); 
       oTable.fnUpdate(sValue, aPos[0], aPos[1]); 
      }, 
      "submitdata": function (value, settings) { 
       return { "row_id": this.parentNode.getAttribute('id') }; 
      }, 
      "height": "14px" 
     }); 
    } 
}); 
}); 

它的作用是在服务器端搜索数据表的...

我的问题是,我不不知道该从这里做什么,以获得与服务器端处理的Jeditable功能...

任何人都可以帮忙吗? :s

+0

任何人都可以帮忙吗? = | – nunong21 2012-08-02 08:48:08

回答

0

这些值将位于update.php中的HTTP请求对象中。根据上面的代码,您的更新值在“值”中,row_id在“row_id”中。