Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding onkeypress to process Enter key on textbox drop
Message
From
02/01/2013 14:08:22
 
 
To
28/12/2012 12:09:45
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:
01561083
Views:
45
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
Previous
Reply
Map
View

Click here to load this message in the networking platform