B
Brad
A long-time JScript/IE programmer friend of mine shared a technique
with me recently that puzzles me. He has a series of functions that
perform POSTs, with each function returning a dummy value. He has a
dummy variable in the calling code to catch it. He said that by both
returning and catching this dummy value, the POSTs perform
synchronously, whereas if there were no values caught in the calling
code, they would perform asychronously. Sort of like this:
var dummy1 = PostFunction1();
var dummy2 = PostFunction2();
where each PostFunctionX does a POST, and returns something like
'ignoreMe'.
I looked around and couldn't find any documentation detailing this
technique anywhere. Can someone point me to information about it? Or
shed light on other ways of accomplishing the same thing?
with me recently that puzzles me. He has a series of functions that
perform POSTs, with each function returning a dummy value. He has a
dummy variable in the calling code to catch it. He said that by both
returning and catching this dummy value, the POSTs perform
synchronously, whereas if there were no values caught in the calling
code, they would perform asychronously. Sort of like this:
var dummy1 = PostFunction1();
var dummy2 = PostFunction2();
where each PostFunctionX does a POST, and returns something like
'ignoreMe'.
I looked around and couldn't find any documentation detailing this
technique anywhere. Can someone point me to information about it? Or
shed light on other ways of accomplishing the same thing?