【问题标题】:How to send data to server with Jeditable select?如何使用 Jeditable 选择将数据发送到服务器?
【发布时间】:2013-08-20 08:46:01
【问题描述】:

我正在尝试使用我的 Jeditable 将数据发送到服务器大约很长时间。我该怎么做?

oTable.$('td.select').editable('{{path('tool_admin_selectJeditable')}}', {
         "height": "14px",
         type: "select",
         submit: 'OK',
         loadurl: "{{path('tool_admin_selectJeditable')}}",
         loaddata: function(value, settings) {
              return {foo: "bar"};
         },
         cancel: 'Cancel',
         "width": "100%"
});

【问题讨论】:

    标签: jquery datatable jeditable


    【解决方案1】:
    oTable.$('td.select').editable('{{path('tool_admin_selectJeditable')}}', {
         "height": "14px",
         type: "select",
         submit: 'OK',
         onsubmit: function(settings, td) {
             //enter code to post data here
             $.post { .... }
         },
                            }
         loadurl: "{{path('tool_admin_selectJeditable')}}",
         loaddata: function(value, settings) {
              return {foo: "bar"};
         },
         cancel: 'Cancel',
         "width": "100%"
    

    });

    【讨论】:

    • 感谢您的回答,但它不符合我的要求。我需要在向服务器提交新值之前发布数据。例如,如果用户点击第三行,第一个冒号,则选择输入将不包含相同的数据,如果他点击第四个冒号,第一行......等等所以我必须将有关单元格的信息发布到服务器cliqued,并且服务器必须以的形式返回json数据
    猜你喜欢
    • 2016-01-12
    • 2022-01-12
    • 1970-01-01
    • 1970-01-01
    • 2012-11-01
    • 1970-01-01
    • 2014-03-01
    • 1970-01-01
    • 2015-10-07
    相关资源
    最近更新 更多