Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding onkeypress to process Enter key on textbox drop
Message
From
14/12/2012 08:39:22
 
 
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:
01559658
Views:
36
>I certainly could not see the behaviour. Down-arrowing to a listed item and hitting enter completed the text box but did not trigger the submit. Hitting Enter again submitted the form:
   <form id="form1" runat="server">
>        <input id="Text1" type="text" onkeypress="return handleKeyPress(event)" /><br />
>      <script type="text/javascript">
>        function handleKeyPress(event)
>        {
>          // return event.keyCode != 13;
>          return true;
>        }
>      </script>
>      <input id="Submit1" type="submit" value="submit" />
>    </form>
Yes, but, I still need to find out what was causing this. It might have been with another browser. I tried three this week. Maybe one of them is bypass this behavior.
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