x-editable ajax call does not process the designated url

寵の児 提交于 2019-12-05 00:24:43

Use send parameter as it can determine Strategy for sending data to server. It Can be auto | always | never. When 'auto' data will be sent on server only if pk and url defined, otherwise new value will be stored locally.

You can set it for all inputs by this code:

$.fn.editable.defaults.send = "always";

Or Customize each input for related strategy like this:

$('.username').editable({
    send: 'always'
});

Have you tried modifying the send option ?

$('.username').editable({
    type: 'text',
    pk: 1,
    url: 'post.php',
    send: 'always'
});

Otherwise try debugging the unminified version bootstrap-editable.js and add a breakpoint here https://github.com/vitalets/x-editable/blob/master/src/editable-form/editable-form.js#L189. I had a similar issue and that's what I did. Hope that helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!