Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Extending type on drop downs


Message #1 by "Sean Roddie" <sean_roddie@b...> on Fri, 31 Aug 2001 15:15:05
I have a drop down box pulling a standard type list of customers from a 
database. 

My problem is this - If the user types in one letter the first entry 
starting with that letter comes up (eg B, the first letter of BT), however 
when they type in more than one letter (eg BT) the selection that comes up 
does not show the correct selection!! I require the user to be able to 
type in up to three characters and then show the relevant selection!

Any ideas anyone?

(currently am using vbscript as below:)

<td class="bgd5">
		<SELECT id=select1 class="input_bgd5" name="txtEquityID" 
value="">
			<OPTION value="" ></OPTION>
			<%
			rsREF.Open strCParty,session("dbcon")
			Do while not rsREF.eof
				%>
				<OPTION class="input_bgd5" value="<%=rsREF
("CPartyID")%>">  <%=left(rsREF("CParty"),5)%> </OPTION>
				<%rsREF.MoveNext
			loop
			rsREF.Close
			%>
		</SELECT>
	</TD>


  Return to Index