I have made a jquery ajax call to a php server script but I have encountered an error message telling me that the data returned of type JSON is not defined. . . So, how to solve this problem? Here is jquery ajax call:
$.ajax({
url: 'listWorkProcess.php',
method: 'post',
data: data,
success: function(feedback){
$.parseJSON('feedback');
console.log(feedback);// loged correctly
alert(feedback.message);//here is the undefined message
$('#table').html(feedback.row_html);//this not executed Why?
}
});//end of ajax