【问题标题】:Jeditable + Datatables + Server Side ProcessingJeditable + 数据表 + 服务器端处理
【发布时间】:2012-08-01 16:53:55
【问题描述】:

我有这段代码……

    $(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

【问题讨论】:

    标签: datatables jeditable


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多