I have a situation in which I am trying to execute a method that will eventually populate the view in the user interface. wanted someone to guide me right.
When launched in jquery, I call some functions like:
function XYX(){
$.ajax(
{
}).
done(function(data){
})
}
function PQR(){
$.ajax(
{
}).
done(function(data){
})
}
Now it happens that the returned results from two ajax calls set up the fields in the user interface, which I ultimately want to use to set up another view that makes the ajax call again, and then uses its own result and the result from XYZ and PQR to set what- that.
function FINAL(){
$.ajax(
{
}).
done(function(data){
})
}
Being AJAX calls, I cannot trust the results that will be available when the FINAL function is called, and I cannot combine these three to create a view.
.