Advertisement

07.07.2008 at 07:31AM PDT, ID: 23543471
[x]
Attachment Details

Keeping the focus on an input box at all times

Asked by otsmith1 in JavaScript, Touch-Screen Displays, Windows Mobile (Pocket PC / Win CE) Operating Systems

Tags: ,

Hello there, I would very much appreciate a solution to this annoying problem if there is one!

I have built a very simple screen for use with a windows mobile pda using internet explorer.

The solution is for packers in a warehouse using a the pda with an inbuilt bar code scanner. All the screen does is to scan an order number in bar code format from the front of an envelope. Once a sucessful scan takes place, it simply re-loads in preperation for another scan.

In principal this works really well, the users can scan envelopes very quickly one after another and the screen simply reloads with the focus already on the input box in question. I use <body onLoad="scan.order_id.focus( )"> to automatically give the text box the focus.

However ... there is a problem...

Because the devices are touch screen and they sometimes accidentally touch the screen when they put it down or put it in their pocket, they lose the focus!

Any press on the screen, even just the background of the form, loses the focus and when they come to scan again, the focus is lost and of course if therefore doesn't work.

So, ... the question is. Is there any way I can keep the focus on an input text box even if the user clicks anywhere else on the page?

Many thanks in advance :-)Start Free Trial
[+][-]07.07.2008 at 09:11AM PDT, ID: 21946291

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 09:20AM PDT, ID: 21946380

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Touch-Screen Displays, Windows Mobile (Pocket PC / Win CE) Operating Systems
Tags: Javascript,xhtml, windows mobile internet explorer
Sign Up Now!
Solution Provided By: coldboy
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.07.2008 at 09:30AM PDT, ID: 21946467

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.16.2008 at 11:21PM PDT, ID: 22495936

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628