Welcome,
I want to call synchronous javascript method without callbacks. The method is a POST asynchronous.
function someMethod() {
var bean; //bean is a proxy object provide by external library
if(clicked_onSpecial_field) {
if(!bean.isAuthorized()) { //here is a async call
return false;
}
}
//a lot of other instructions...
}
From one hand usually clicked_onSpecial_field = false
so I cannot put all other instructions in callback.
From the another hand bean
is a provide to me proxy object. In this case i don't know in which way I can use $.ajax
.
Could you please help?