Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding onkeypress to process Enter key on textbox drop
Message
 
 
À
12/12/2012 14:50:09
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01559443
Message ID:
01559466
Vues:
32
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform