Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding onkeypress to process Enter key on textbox drop
Message
 
 
To
12/12/2012 14:50:09
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01559443
Message ID:
01559466
Views:
33
>>If that's the case (for your first question), then may be you can detect an object from which the Enter came from? E.g. if you can detect that the current focused control is a drop down and don't do anything in this case?
>
>The current object is a textbox but the browser has a built in mechanism which shows on top on it a dropdown list to ease the selection of a pre-entered value, in case the user would like to enter something he already did. The problem is at the form level. There is no way a form onkeypress should grab that key.

Are you implementing auto-complete yourself or it's a browser somehow implements it for you?

In any case, I think I can not help you with your problem being an amateur in java script myself.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform