function ajaxRefresh(actionUrl) {
$.ajax({
url: actionUrl,
success: function() {
return true;
}});
return false;
}
The function anyway returns false even when a request is succeeded, becouse the request is asynchronous. How I can return true when request is succeeded?
You should set parameter
asynctofalse. Try this code: