This is an update question to a previously answered thread found here:
A quick synopsis:
The function below provides a quick "jump to" navigation of approx 3000 links from a textbox to a different frame. User enters "T" and the first link starting with "T" is made visible.
The question is whether there is a better way to do this. Using Opera and FF this work reasonably well, but the JS execution in IE (as we all know) is terrible and the lag makes it almost useless.
The Textbox is coded as:
A typical link looks like this:
and is generated dynamically using ASP.
Any ideas would be greatly appreciated. As always, thanks in advance.
A quick synopsis:
The function below provides a quick "jump to" navigation of approx 3000 links from a textbox to a different frame. User enters "T" and the first link starting with "T" is made visible.
The question is whether there is a better way to do this. Using Opera and FF this work reasonably well, but the JS execution in IE (as we all know) is terrible and the lag makes it almost useless.
Code:
<script type="text/javascript">
function jumpToLink(str){
var linkList=top.frames['List'].document.getElementsByTagName("a");
for(i=0;i<linkList.length;i++){
if(linkList[i].getElementsByTagName("span")[0].innerHTML.substr(0,str.length).toLowerCase()==str.toLowerCase()){
linkList[i].focus();
break;
}
}
document.searchform.searchbox.focus();
}
</script>
The Textbox is coded as:
Code:
<input type="text" name="searchbox" onkeyup="jumpToLink(this.value)" title="Jump To...">
A typical link looks like this:
Code:
<a href="Details.asp?Link=Link1" target="Details" title="View Details..."><span class="splnk">Today - Tomorrow</span></a>
Any ideas would be greatly appreciated. As always, thanks in advance.