URGENT :: Disable enter key in HTML:FORM by using onKeyPress func tion

2003-11-20 Thread Chawla, Yogesh
Hi, In normal forms, we can disable enter key by calling onKeyPress() function in the form tag. However, this is not supported in the html:form definition for Struts. Can anybody give a solution to this ... Thanks, Yogesh Chawla DISCLAIMER: The information in this message is confidential

Re: URGENT :: Disable enter key in HTML:FORM by using onKeyPress function

2003-11-20 Thread Sergey Smirnov
Chawla, Yogesh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, In normal forms, we can disable enter key by calling onKeyPress() function in the form tag. However, this is not supported in the html:form definition for Struts. Can anybody give a solution

RE: URGENT :: Disable enter key in HTML:FORM by using onKeyPress function

2003-11-20 Thread Chawla, Yogesh
Smirnov [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 2:29 PM To: [EMAIL PROTECTED] Subject: Re: URGENT :: Disable enter key in HTML:FORM by using onKeyPress function Chawla, Yogesh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, In normal forms, we can disable enter key

Re: URGENT :: Disable enter key in HTML:FORM by using onKeyPress func tion

2003-11-20 Thread James Mitchell
On Thu, 20 Nov 2003, Chawla, Yogesh wrote: Hi, In normal forms, we can disable enter key by calling onKeyPress() function in the form tag. However, this is not supported in the html:form definition for Struts. Can anybody give a solution to this ... Your best bet for stopping the user

RE: disable enter key

2002-12-30 Thread Daniel Joshua
, December 28, 2002 2:07 AM To: [EMAIL PROTECTED] Subject: RE: disable enter key But the default behavior of Enter in a browser (IE?) is to invoke the form submission. For example, if you hit Enter on a login page, it acts like you click the Sing-In button. There is no JS involved. Regards, Phillip

Re: disable enter key

2002-12-30 Thread deepak
- Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, December 30, 2002 2:27 PM Subject: RE: disable enter key Another question: If I have no submit button. How do I make it that the 'Enter' key triggers a JavaScript

RE: disable enter key

2002-12-30 Thread Daniel Joshua
Would that work if my control is a password input field ? Regards, Daniel -Original Message- From: deepak [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 7:41 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: disable enter key You can use something like

Re: disable enter key

2002-12-30 Thread deepak
Should work I have not tried it. Just try it out - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'deepak' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 30, 2002 5:12 PM Subject: RE: disable enter key Would that work if my control is a password input

Re: disable enter key

2002-12-30 Thread deepak
This works with input type=text - Original Message - From: Daniel Joshua [EMAIL PROTECTED] To: 'deepak' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 30, 2002 5:12 PM Subject: RE: disable enter key Would that work if my control is a password input field ? Regards

disable enter key

2002-12-27 Thread pqin
Dumb question. Is it able to disable Enter key without using JavaScript on any struts-powered page? Regards, Phillip Qin This Guy Thinks He Knows Everything

RE: disable enter key

2002-12-27 Thread James Childers
, 2002 11:59 AM To: [EMAIL PROTECTED] Subject: disable enter key Dumb question. Is it able to disable Enter key without using JavaScript on any struts-powered page? Regards, Phillip Qin This Guy Thinks He Knows Everything -- To unsubscribe, e-mail: mailto:[EMAIL

RE: disable enter key

2002-12-27 Thread pqin
Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: James Childers [mailto:[EMAIL PROTECTED]] Sent: December 27, 2002 1:03 PM To: Struts Users Mailing List Subject: RE: disable enter key No. Struts is a server-side platform. It can make client-side

RE: disable enter key

2002-12-27 Thread James Childers
Philip Qin wrote: But the default behavior of Enter in a browser (IE?) is to invoke the form submission. For example, if you hit Enter on a login page, it acts like you click the Sing-In button. There is no JS involved. I'm not sure how this changes anything. The Enter on submit