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