0

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

1 回答 1

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

});

于 2013-08-20T10:53:33.360 回答