[SOLVED] Automatically selecting field for entry
Moderator: General Moderators
-
ktsugihara
- Forum Newbie
- Posts: 5
- Joined: Thu Jun 28, 2007 2:16 pm
[SOLVED] Automatically selecting field for entry
Hey so I have my program totally made. to understand what im asking for, i need to tell you what the program is all about...
so i have a tablet pc and a scan gun. when people walk into my stock room, they have to sign in with their badge. I have it set up so they can just scan their badge nad then i scan mine saying i let them in. so the scan gun is set up to hit "enter" automatically. so i scan his, it goes to the next screen, and then i go to scan my badge, but i have to select the field. i just want it to automatically select the feild. is that possible?
so i have a tablet pc and a scan gun. when people walk into my stock room, they have to sign in with their badge. I have it set up so they can just scan their badge nad then i scan mine saying i let them in. so the scan gun is set up to hit "enter" automatically. so i scan his, it goes to the next screen, and then i go to scan my badge, but i have to select the field. i just want it to automatically select the feild. is that possible?
Last edited by ktsugihara on Thu Jun 28, 2007 5:08 pm, edited 1 time in total.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
-
ktsugihara
- Forum Newbie
- Posts: 5
- Joined: Thu Jun 28, 2007 2:16 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
-
ktsugihara
- Forum Newbie
- Posts: 5
- Joined: Thu Jun 28, 2007 2:16 pm
Code: Select all
<input type="text" name="e_wwid" tabindex="1">[edit]
Hmm it deosnt seem to be working... any other ideas?
[/edit]
-
ktsugihara
- Forum Newbie
- Posts: 5
- Joined: Thu Jun 28, 2007 2:16 pm
-
ktsugihara
- Forum Newbie
- Posts: 5
- Joined: Thu Jun 28, 2007 2:16 pm
alright thanks alot for the help!!!
[edit]
Here is the solution:
Note:
you need the ID tag for the 'getElementById()' to work correctly.
[edit]
Here is the solution:
Code: Select all
<html>
<title>test</title>
<body>
<script type="text/javascript">
function formfocus() {
document.getElementById('tester').focus();
}
window.onload = formfocus;
</script>
<form name=testing>
<p>Test</p>
<input type=text name=tester id=tester>
</input>
</form>
</body>
</html>Code: Select all
<input type=text name=tester id=tester>