Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding onkeypress to process Enter key on textbox drop
Message
De
02/01/2013 14:08:22
 
 
À
28/12/2012 12:09:45
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:
01561083
Vues:
46
After more tests, it appears that only Firefox has this problem. This is a known bug. IE and Chrome works just fine with the autocomplete. The autocomplete keypress is eaten by the browser before sending it to the javascript, thus no Enter key is simulated. Thus, hitting Enter to select an entry from the autocomplete list will not fire the onkeypress event of the textbox HTML control.

On related notes:

There is a way to disable the autocomplete at the HTML level with AUTOCOMPLETE = "off`" but this is not recommanded.

Autocomplete works only on same URLs. Thus, if the same page is accessed but with a different URL, it won't work.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform