MK3100 Auto Focus Lost

// Expert user has replied.
Z Ziga Mlinaric 3 years 7 months ago
149 3 0

Hi!
 
We have a regular Auto Focus lost problem with the new MK3100 Micro Kiosk on a Web Page input field. The Page has only one Input field, where the Barcode is copied after scan, but after some time the Web page looses the Input field focus. We don't know there real source, but we would like to know if there is any option to set the Auto Focus solid to the input field?
 
We also had the problem with the "web-site not found error 404" on the devices. Are there any options to set the device browser (RhoMobile Browser), that after some period of time it should refresh the Web Page that should be displayed in first place?
 
Thanks for help.

Please Register or Login to post a reply

3 Replies

Z Ziga Mlinaric

We have managed to Auto Focus the input field! But then there is a problem with the MSP, when the MSP Client opens, after cca. 1 Min 20 Sec the Page Loses focus! But if you touch the screen after that, the focus is back again and stays so. Do you have any suggestions what to configure so that we won't loose focus on the Rhomobile Browser / Opened Page?

M Mariano Colabraro

It may lost the focus because the barcode includes a TAB caracter.you can set and auto focus every 3 seconds, as Pietro said with some JavaScript

 
    function setFocus() {
     var element = document.getElementById('test');
     element.select();
     element.focus();
    }
 

 
  Using JavaScript:
 
 
 

Now you need to call setFocus() in a cycle. you can use the function setTimeout( expression, timeout );

P Pietro Francesco Maggi

Hi Ziga,
what are you using to scan the barcode?
If you're using the Scanner API than you don't need to have the focus to the input field like when you use Datawedge to simulate keyboard input.

Same for the reload issue, the page can do this with some JavaScript.

If the issue is that you cannot do any changes to the HTML page, then maybe that symscript can help but I'm not sure that it has been ported to WEC7.

Best regards
Pietro

CONTACT
Can’t find what you’re looking for?