submit button

Reply

Join Date: Mar 2006
Posts: 20
Reputation: muthumari is an unknown quantity at this point 
Solved Threads: 0
muthumari muthumari is offline Offline
Newbie Poster

submit button

 
0
  #1
Apr 7th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 18
Reputation: techkar is an unknown quantity at this point 
Solved Threads: 1
techkar's Avatar
techkar techkar is offline Offline
Newbie Poster

Re: submit button

 
0
  #2
Apr 20th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 20
Reputation: muthumari is an unknown quantity at this point 
Solved Threads: 0
muthumari muthumari is offline Offline
Newbie Poster

Re: submit button

 
0
  #3
Apr 20th, 2006
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.....
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 20
Reputation: muthumari is an unknown quantity at this point 
Solved Threads: 0
muthumari muthumari is offline Offline
Newbie Poster

Re: submit button

 
0
  #4
Apr 20th, 2006
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.....
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 3
Reputation: cpweb is an unknown quantity at this point 
Solved Threads: 0
cpweb cpweb is offline Offline
Newbie Poster

Re: submit button

 
0
  #5
Apr 21st, 2006
Use a onPress function
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 2
Reputation: miteshb is an unknown quantity at this point 
Solved Threads: 0
miteshb miteshb is offline Offline
Newbie Poster

Re: submit button

 
0
  #6
May 17th, 2006
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>
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,194
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 485
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: submit button

 
0
  #7
May 19th, 2006
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
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 353
Reputation: aniseed is an unknown quantity at this point 
Solved Threads: 6
aniseed's Avatar
aniseed aniseed is offline Offline
Posting Whiz

Re: submit button

 
0
  #8
May 22nd, 2006
Originally Posted by cpweb
Use a onPress function
Should that not be onKeyPress?!?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: submit button

 
0
  #9
May 24th, 2006
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).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 1
Reputation: kawatra is an unknown quantity at this point 
Solved Threads: 0
kawatra kawatra is offline Offline
Newbie Poster

Re: submit button

 
0
  #10
Aug 11th, 2006
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC