function get_applications(){
var application_list = "";
$.ajax({
url: '../ajax/some_file.php',
contentType: false,
processData: false,
type: 'POST',
success: function(data){
application_list = data;
// console.log(data);
},
error: function() {
// console.log('NOT updated');
}
});
return application_list;
}
If you are not sure how to do that, then create a test environment for us and post a link to your test page using fake data.