Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding onkeypress to process Enter key on textbox drop
Message
De
14/12/2012 08:39:22
 
 
À
14/12/2012 04:29:34
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:
01559658
Vues:
35
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform