aspose file tools*
The moose likes Struts and the fly likes login by clicking enter in the key board with out clicking submit button on the scree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "login by clicking enter in the key board with out clicking submit button on the scree" Watch "login by clicking enter in the key board with out clicking submit button on the scree" New topic
Author

login by clicking enter in the key board with out clicking submit button on the scree

athadu pokiri
Greenhorn

Joined: Jul 09, 2006
Posts: 5
I have an issue, we have login and password on giving login and pw and on clicking submit it is taking to application , we want to go in to application with out clicking on submit button , but by clicking enter button on the key board.how can we do this pl send if You have any info or some link
Dileep Kamath
Greenhorn

Joined: Jul 15, 2006
Posts: 19
When you press Enter key the result is the same as clicking on the first submit button on the screen. So if you place your Submit before any other submit buttons like Cancel, then Enter key would work automatically.

If its not possible to do this because of the screen layout then you can add a hidden submit button placed before other buttons.
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
If any field in the form has focus and you have a <input type=submit> button, hitting Enter should automatically submit the form. If you want to submit regardless of where the focus is, you can try this:

Remove the space in "on keydown". The filter won't let me put it in correctly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: login by clicking enter in the key board with out clicking submit button on the scree