SiteExperts.com Logo Home | Community | Developer's Paradise | Jobs
User Groups | Site Tools | Site Information | Search

Inside Technique : Lookup Lists II
By Scott Isaacs

This article combines a standard text box and list box to create a lookup list. As the user types into the text box, the list item that most closely matches is automatically highlighted. This example runs in Internet Explorer and Netscape Navigator with minimal custom browser code.

This example is based on our original Lookup Lists example that only supported the auto-lookup in the 4.0 browsers. We were unable to run in the pre-4.0 browsers due to the lack of a keypress event. However, with the use of a timer, we found a way to simulate key events in the 3.0 browsers.

First, below is a simple lookup list. You can click and type in the textbox. As you type, the nearest match is found.

 
 


 

Next, we explain how we created the cross-browser lookup list.