944,043 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 29893
  • JSP RSS
You are currently viewing page 1 of this multi-page discussion thread
Apr 7th, 2006
0

submit button

Expand Post »
Hi,


Using enter key only,How to go to the next page in submit button(without clicking that button(onclick) , using the tabkey).Anyone can u help me.....



Thank you
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
muthumari is offline Offline
20 posts
since Mar 2006
Apr 20th, 2006
0

Re: submit button

Quote originally posted by muthumari ...
Hi,


Using enter key only,How to go to the next page in submit button(without clicking that button(onclick) , using the tabkey).Anyone can u help me.....



Thank you
hi muthu maari,

could u plz,elabrate your query little bit.

regards,

techkar.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
techkar is offline Offline
18 posts
since Feb 2006
Apr 20th, 2006
0

Re: submit button

Hi

I have 2 textbox(username,password) and one submit button.Whenever i clicking the submit button it will go to the next page or using tab key moment it will go to the next page.I want to know ,How to go to the next page in submit button(without clicking submit button , without using using the tab key)using enter key.Anyone can help me.....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
muthumari is offline Offline
20 posts
since Mar 2006
Apr 20th, 2006
0

Re: submit button

Hi

I have 2 textbox(username,password) and one submit button.Whenever i clicking the submit button it will go to the next page or using tab key moment it will go to the next page.I want to know ,How to go to the next page in submit button(without clicking submit button , without using using the tab key)using enter key.Anyone can help me.....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
muthumari is offline Offline
20 posts
since Mar 2006
Apr 21st, 2006
0

Re: submit button

Use a onPress function
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cpweb is offline Offline
3 posts
since Apr 2006
May 17th, 2006
0

Re: submit button

Quote originally posted by muthumari ...
Hi

I have 2 textbox(username,password) and one submit button.Whenever i clicking the submit button it will go to the next page or using tab key moment it will go to the next page.I want to know ,How to go to the next page in submit button(without clicking submit button , without using using the tab key)using enter key.Anyone can help me.....
hi

try this

<html>
<body>
<form action='test3.htm'>
<input type=text name=text1>
<input type=text name=text2>
<input type=submit>
</form>
</body>
</html>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
miteshb is offline Offline
2 posts
since May 2006
May 19th, 2006
0

Re: submit button

no that is not what he wanted. he is not looking for html code. point is, take lazy user which doesn't like to move with mouse. after filling requered fields he only will press enter and by transfered to next page. Press enter work as long after typing password user pressed TAB to move to next field. But to move directly from password to next page you have to make key listener to listen for enter to be press
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,658 posts
since Dec 2004
May 22nd, 2006
0

Re: submit button

Quote originally posted by cpweb ...
Use a onPress function
Should that not be onKeyPress?!?
Reputation Points: 48
Solved Threads: 7
Posting Whiz
aniseed is offline Offline
353 posts
since Apr 2006
May 24th, 2006
0

Re: submit button

The first submit button defined in the form has automatic keyboard focus for key events relating to the Enter key.
No need to do anything (unless you define your own higher level event handler to capture and discard those events of course, but then tabbing to the button and pressing space will activate it).
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Aug 11th, 2006
0

Re: submit button

Insert the following code in your page_load it will be worked
TextBox2.Attributes.Add ("onkeydown","if(window.event.keyCode==13){document.getElementById('"+Button3.UniqueID+"').click();return false;} else{return true};");

It will be attach the texbox event with the button click.
Have a nice time
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kawatra is offline Offline
1 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in JSP Forum Timeline: show the list data value based on Locale
Next Thread in JSP Forum Timeline: RT Editor





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC