I use jQuery Ajax. My success function:
...
success: function(data, status, xhr) {
alert(data);
r = resultResponse(data);
}
...
How can I get the data from response body (with xhr or with any other way except for data variable, because data variable is undefined opposite to there is data at response body)?
xhr.responseTextreturns the data, I had a problem with my charset so that’s why I couldn’t achieve to do it.