?
Solved

enter key and onclick

Posted on 2002-06-13
5
Medium Priority
?
212 Views
Last Modified: 2011-09-20
This question is in two part, I don't believe in point sharing, so the first person to give me an acceptible answer that works will get the points.

1.) I want that whenever the enter key is pressed, the tab sequence is initiated to move the cursor from one field to the next.

2.) I have a form with some fields on it.  When the last field loses focus, I automatically created a group of text boxes, I also have a button to submit the form.  What I want to do is if the submit button is pressed, the form gets submitted, what is happenning instead is the new set of textbox gets created instead.  How can I solve this.
0
Comment
Question by:markcas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
tejaspurani earned 150 total points
ID: 7075835
answer 1.
http://javascript.internet.com/forms/tab-key-emulation.html

for the second one please post code.

T.P.
0
 

Author Comment

by:markcas
ID: 7076035
just the scenario
<html>
<body>
<input type='button' value='send' onclick='sendValue()'>
<input id='txtName' onblur='createNewTextBox()'>
<script language="javascript>
function sendValue()
{
   alert('Sending Values');
}

function createNewTextBox()
{
  alert('Creating New Text Box');
}
</script>
</body>
</html>
0
 

Author Comment

by:markcas
ID: 7076134
Have worked with some of the codes from the link that was posted by tejaspurani, and have solved both my problems
0
 
LVL 3

Expert Comment

by:tejaspurani
ID: 7076137
The Example above u gave works fine,
it creates new text box onblur and send the page info
onclick.

please post the actual code.

T.P.
0
 
LVL 3

Expert Comment

by:tejaspurani
ID: 7076139
The Example above u gave works fine,
it creates new text box onblur and send the page info
onclick.

please post the actual code.

T.P.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question