In Jquery Ajax ,Can we get response value as corresponding function return value
checkSucess = function() {
// Jquery Ajax with url,params and response
doPost('sucess.php',
'first=' + first,
function(response) {
});
return response;// 'response' here is the value of response
How to return ajax response value of a function ,which is called from other function
when it’s asynchronus you can’t do it the way you want
if your sure that it the request will not last very long then make it async: false and see