Oct 21, 2014, 4:26 PM
[CLOSED] Making a call synchronous
Guys
If there a way to make a function callback syncronous, something like
In this case I am rendering a grid and need to wait for the return from a WCF call to render a certain column. Non critical though as I do not like this implementation and will probably end up calling the WCF service from server side code and pre-populating the grid store.
Ta,
D
If there a way to make a function callback syncronous, something like
MyApp.direct.ctlJobStati.GetProgress(1584, {
success: function (result) {
if (result == '-1') {
value = value + " (?)";
}
else {
value = value + " " + result + "%";
}
}
}, WAIT);
I know in jQuery you can use something like $.ajax {,,,,,, async:false }In this case I am rendering a grid and need to wait for the return from a WCF call to render a certain column. Non critical though as I do not like this implementation and will probably end up calling the WCF service from server side code and pre-populating the grid store.
Ta,
D
Last edited by Daniil; Oct 24, 2014 at 5:38 AM.
Reason: [CLOSED]