How I can use X-editable pass value to backend and get response
Posted
by
leonlong
on Stack Overflow
See other posts from Stack Overflow
or by leonlong
Published on 2013-10-27T00:55:50Z
Indexed on
2013/10/27
3:54 UTC
Read the original article
Hit count: 172
I am new to jquery, recently I tried to use X-editable to edit a table. after I edited it , I want to pass value to PHP for process, but when I want to return something else back with value, it will get an error. What I mean is usually we can get several response from PHP, but I can get it like that through this.
$('#example').editable({
type: 'text',
name: 'example',
url: 'exprediction.php',
ajaxOptions: {
dataType: 'json'
},
success: function(newValue) {
var response = newValue.split("|");
value1 = response[0];
value2 = response[1]; //it did not work
}
});
© Stack Overflow or respective owner