X-editable has no limitation to backend side, you can write it on any server language you prefer.
The common logic is:
pk
, name
and value
from request (POST by default).The most possible reason is that you have empty pk
or url
options.
If you want to submit data without pk please set send
option to "always"
.
Also form is not submitted if you did not change value. To manage this behavior see savenochange
option.
You may define params
as function:
$('#field').editable({ ... params: function(params) { //params already contain `name`, `value` and `pk` var data = {}; data['id'] = params.pk; data[params.name] = params.value; return data; } });
You may define params
as function and make conversion there:
//submit in JSON format $('#field').editable({ ... params: function(params) { return JSON.stringify(params); //note: for older browsers you may need json2.js from json.org } });
Please have a look on address input source. Code is commented.
All your ideas and feedback are very appreciated! Please feel free to open issues on github or send me email.
I'm also grateful for your donations:
Thank you!
List of donators: