Подскажите, пожалуйста:
Делаю два запроса:
makePOSTRequest(url,par);
makePOSTRequest2(url,par);
И в первом пытаюсь прочитать ответ:
function alertContents() {
        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
                result2 =       http_request.responseText;
                alert(result2);
} else {              
                alert('There was a problem with the request. Please try again in a few seconds.');
            }
        }
    }
В итоге result2 равен ответу от второго запроса.
Как сделать все правильно? По очереди?
Спасибо