Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Possible to press Enter in drop down menu, instead of clicking on Submit button.


Message #1 by "vandael T" <vandael_tim@h...> on Thu, 18 Apr 2002 13:02:21
The code below is drop down menu made by the help of ASP. :-)
With ASP there is no problem, but i was wondering if it is possible, that 
when they select the SOORT (drop down menu) that they dont have to press 
tab of click on the submit button, but just press Enter and that he value 
are send.

thnx

Vandael Tim


<TH><%
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Drop down menu soort
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
	dim sql33
	sql3 = "SELECT * FROM Soort ORDER BY id"
	dim rs3
	set rs3 = server.CreateObject("ADODB.RecordSet")
	rs3.open sql3, cnn1, 1,3
%>
<SELECT id=select1 name=soort style="HEIGHT: 22px; WIDTH: 171px"> 
<OPTION selected value="">-Kies een soort blad-</OPTION>
	<%	
	if not rs3.eof then
	do until rs3.eof
	%>
	<option value=<%=Server.HTMLEncode(rs3.Fields("soort").Value)%>>
        <%=Server.HTMLEncode(rs3.Fields("Soort").Value)%>
	</option>
	<%
	rs3.movenext
	loop
	%>
	</select>
	<%
	else
        %>	
	<option>no record found</option>
	<%
	end if
	rs3.Close
	Set rs3 = Nothing
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
        %>
	</SELECT></TH>
        <TH><input type="submit" name="Submit" 
value="&nbsp;&nbsp;&nbsp;&nbsp;Zoek&nbsp;&nbsp;&nbsp;&nbsp;" 
target="main"></TH>
        <TH></TH>
	<TH><input type="reset" name="Submit2" value="Reset"></TH>
	<TH></TH>

  Return to Index