I am using post method like this:
webix.ajax().post(“url.php”, {
data1: value1,
data2: value2
},
function (response) {
if (response) //for update it's either true or false
console.log("all good");
else
console.log("ERROR");
});
But I need to get some from php to response, how can I do that?
echo $data; // in php
console.log(response); //in JS response
doesn’t work