Я хочу отложить подготовленный вызов метода (подготовленный = все параметры уже установлены) для выполнения. Пример:
У меня есть текстовое поле со следующим методом прослушивателя:
var storedRequest = null;
function doAjaxRequest() {
//if there is no request at this moment, do the request
//otherwise: store the request and do nothing
}
//will be executed after a request is done
function callbackAjaxRequestComplete() {
//is storedRequest != null --> Execute that request (the last one)
}
Итак, есть ли возможность сохранить вызов метода PREPARED для выполнения?