<html>
<head>
<title>Asynchronous Call Ideas - RJM Programming - May, 2026</title>
<style>
td { vertical-align: top; }
p { font-size: 12px; background-color: yellow; }
p.pink { background-color: pink; }
</style>
<script id="mysc" type=text/javascript src='/jssleep.js?delay=34&iterations=5' defer></script>
<script type=text/javascript>
var butso=[], tdso=[];
var lh='#lmr=y';

function onsel(osel) {
if (osel.value.toLowerCase() == 'ajax') {
lh='#allthreeajax=y';
} else {
lh='#lmr=y';
}
if (osel.id == 'myselone' && document.getElementById('mysel').value != osel.value) {
document.getElementById('mysel').value=osel.innerText;
} else if (document.getElementById('myselone').innerHTML != osel.value) {
document.getElementById('myselone').innerHTML=osel.value;
}
}

function other() {
if (jstimes > 0 && pjsibetter >= 0) {
tdso[eval(-3 + eval('' + tdso.length))].innerHTML+='<p class=pink>' + ('' + new Date()) + '</p>';
}
if (ajstimes > 0 && jsibetter >= 0) {
tdso[eval(-2 + eval('' + tdso.length))].innerHTML+='<p class=pink>' + ('' + new Date()) + '</p>';
}
if (bjstimes > 0 && bjsibetter >= 0) {
tdso[eval(-1 + eval('' + tdso.length))].innerHTML+='<p class=pink>' + ('' + new Date()) + '</p>';
}
}

function startyourengines() {
butso=document.getElementsByTagName('button');
if (eval('' + butso.length) >= 3) {
butso[eval(-3 + eval('' + butso.length))].click();
butso[eval(-2 + eval('' + butso.length))].click();
//setTimeout(function(){
butso[eval(-1 + eval('' + butso.length))].click();
//}, 2000);
if (('' + location.hash).indexOf('lmr=y') != -1) {
location.hash='#lmr=Y';
} else if (('' + location.hash).indexOf('allthreeajax=y') != -1) {
location.hash='#allthreeajax=Y';
}
}
}

setInterval(other,30000);
</script>
</head>
<body onload="butso=document.getElementsByTagName('button'); tdso=document.getElementsByTagName('td');">
<h1>Asynchronous Call Ideas</h1>
<h3>RJM Programming - May, 2026 <button onclick=" location.hash=lh; startyourengines();">Start Your Engines ...</button></h3>
<h4>Helped out by jssleep.js</h4>
<table style=width:90%; cellspacing=5 cellpadding=2 border=5>
<tr><th>Promise</th><th>Ajax (processing then delay)</th><th><select onchange=onsel(this); onclick="event.stopPropagation();" id=mysel><option value='Fetch'>Fetch</option><option value='Ajax'>Ajax</option></select> (working within delay)</th></tr>
<tr><td>
<button onclick=" if (('' + location.hash).replace('allthreeajax','lmr').indexOf('lmr=y') == -1) { location.hash='#left=y'; } setTimeout(jsask,1); ">Sleep 34 seconds x 5</button></td><td><button onclick=" if (('' + location.hash).replace('allthreeajax','lmr').indexOf('lmr=y') == -1) { location.hash='#middle=y'; } argjsajaxit(ajsdelay, ajstimes); ">Ajax ( processing time + 34 ) seconds x 5</button></td><td><button id=bright onclick=" if (('' + location.hash).replace('allthreeajax','lmr').indexOf('lmr=y') == -1) { location.hash='#right=' + document.getElementById('mysel').value.toLowerCase(); } bargjsajaxit(bjsdelay, bjstimes); "><span id=myselone>Fetch</span> ( just 34 ) seconds x 5</button>
</td></tr></table>
</body>
</html>