Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fuzzy spelling for date pulldown

Status
Not open for further replies.

OhioSteve

MIS
Mar 12, 2002
1,352
US
I am changing a legacy web page that uses classic .asp + html. I am adding a pulldown with date values. In testing, I noticed that the pulldown's value shifts to the appropriate month when I type a numeral. However, if I continue to type in the date, it ignores the other characters. How can I fully implement fuzzy spelling?



<select name="dateAssigned" tabindex="20">
<option>1/1/1999</option>
<%
i= -100
do while i < 301
response.write "<option>" & date()+i & "</option>"
i=i+1
loop
%>
</select>
 
You would need to code your own logic into it, if you would want. Something like Google did here: Google Suggest. Because default behaviour of select box is, that it will remember one key pressed and search for the next instance of that key in the list. By pressing the same number again, it will scroll to the next instance starting with that number.
 
Too bad. We don't have time to write a vbscript for a legacy webpage.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top