Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lock cursor in textbox 1

Status
Not open for further replies.

cesaru

Technical User
Jan 31, 2008
19
0
0
US
Hi,
I'm creating a small single data entry form for a handheld.
I have a "staging" textbox where people enters data and the stagingtextbox then sends to other textboxes depending on the data.

The problem i'm having is that because the handheld is touchscreen if the user touches the form (body) the staging textbox looses focus and the user then get's confused..
(we work in a warehouse)

is there a way to have the cursor always be in a textbox?
any ideas, help will be appreciated. thanks!
 
is there a way to have the cursor always be in a textbox?

Reliably? Not really. But this may be enough to suit your needs:

Code:
<input type="text" [!]onblur="this.focus()"[/!] />

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
thanks... you get me the idea.

I came up with the onclick on the body.
<body onclick ="document.forms[0].stagingfield.focus();"

that works..

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top