( , , , . , , numOfRows, Ajax. , ...):
async : false $.ajax. A Ajax . , , . (.. ). , .
$.ajax({
url: 'php/SeeIfNumberExists?number=' + document.getElementById('number_inp').value,
type: "GET",
async: false,
cache: false,
success: function (html) {
numOfRows = parseInt(html);
}
});
$. ajax:
dataType: "jsonp" . , , , . jQuery 1.8, async: false jqXHR ($.Deferred) ; // jqXHR, jqXHR.done() jqXHR.success().