Single Threaded Ajax
Ajax requests will only get run if there isn’t already an ajax request in progress.
This is quite advanced, and is best understood by viewing and understanding the source code of ApplyPatternsIfReady.asp.
This makes use of the fact that ssPrepareTarget will return a value of false if an ajax request is already running.
Pertinent bits of code are shown below
if (ssPrepareTarget("contentbox"))
{
ssGrabFile("contentbox",el.href);
ssApplyPatternsWhenReady("contentbox",1)
}
and
function ssPrepareTarget(strDiv)
{
if(!document.getElementById(strDiv + "status"))
{
.......
}
if (document.getElementById("loadingimage"))
{
return false;
}
else
{
.......
}
}