S
shall
When a user sets focus on a textbox, I want this AJAX dropdown to run
ONCE.
If the user goes BACK to that same textbox, I do NOT want the
"GetMyFile" to execute again.
How can I do this?
function show2Multi(aname,alist)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(alist).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","GetMyFile.asp?f="+allYears+"&a="+aname,true);
xmlhttp.send();
}
TIA
Steve
ONCE.
If the user goes BACK to that same textbox, I do NOT want the
"GetMyFile" to execute again.
How can I do this?
function show2Multi(aname,alist)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(alist).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","GetMyFile.asp?f="+allYears+"&a="+aname,true);
xmlhttp.send();
}
TIA
Steve