如何使用Jeditable select将数据发送到服务器?

时间:2013-08-20 08:46:01

标签: jquery datatable jeditable

我正在尝试使用我的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%"
});

1 个答案:

答案 0 :(得分:0)

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%"

});