On Sep 1, 1:27*pm, GArlington <garling...@tiscali.co.ukwrote:
>
Because of luck of debugging info in sync request (in your link) I can
not say for sure what is happening, but by the look of it, the sync
request is being submitted in async mode and processing continues...
Yes, that's what is happening.
Here's the code of the SYNC button :
sync.onclick= function () {
var a, xhr= new XMLHttpRequest();
xhr.open("GET", "xhrData.txt?"+Math.random(), ** false ** );
xhr.send(null);
//dummy do-something-else-just-in-case before returning
//See cljs thread 2
a= 1;
};
If you can monitor the network traffic you'll see that pressing it
once produces a traffic of x (KB/s), pressing it twice yields 2x, etc.
IOW: the synchronous XHRs are being posted asynchronous and
concurrently.
--
Jorge.