Company Christmas Holidays
North American Headquarters in Miami, USA: Dec 25, 2015, Jan 1st 2016
European Headquarters in Muenster, Germany: Dec 21, 2015 until Jan 03rd 2016
Limited support is available during this period.
We at PROVISIO wish you Merry Christmas and a Happy New Year!

 

Misc: Focus in chrome web page

Description

In our SiteKiosk configuration we open web page with chrome. These web page wait codebar scan input to do a search. We have the problem that on init Sitekiosk the web page don't have the focus, when the user scan a codebar the search don't work, when the user touch the touch panel and retries the codebar scan all works fine.
In other words when Sitekiosk start chrome and our web page, the focus not is in our web page until someone touch the touch panel.

Réponse: (9)

Re: Focus in chrome web page 30/09/2020 12:59
Hello,

Generally the focus must be set by the web page code like e.g. on the Google search page where it also works in SiteKiosk that the focus is on the search field.

So you may first test if it generally works with your page by e.g. using the Google Chrome Browser or the Chromium CEF Test Browser (see below) because SiteKiosk Chrome Skin uses a Chromium CEF Engine installed with SiteKiosk.

If that does work it maybe is a timing issue because on SiteKiosk startup the SiteKiosk Browser skin is also loaded.

If you have influence to the web page code you can check setting the focus with a little delay, so that it will be set after SiteKiosk has been loaded completely.
Or you check to load the start page with a little delay, e.g. by using a html file like this that you store into the folder “…\SiteKiosk\Html” and use as start page instead.


<html>
	<title>Local Redirect</title>
	<head>
		<meta http-equiv="refresh" content="5; URL=http://www.google.com/">
	</head>
	<body>
	Just a moment...
	</body>
</html>

This example redirects to Google after 5 seconds.
Just Copy & Paste the code into an editor (e.g. Notepad) and save as html file (e.g. redirect.html) under "...\SiteKiosk\HTML".
Adjust the URL accordingly.
Then configure this HTML file as Start Page in SiteKiosk.

Regards,
Michael Olbrich
Re: Focus in chrome web page 30/09/2020 13:01
SiteKiosk 9.8.5547 uses Chromium 81.0.4044.138 Windows 32 Bit.
Here you can find the corresponding Chromium test application for download (unzip 2x and run the cefclient.exe in the "Release" folder) which is currently used in SiteKiosk 9.8.5557 (Chromium 81.0.4044.138 Windows 32 Bit):
http://opensource.spotify.com/cefbuilds/cef_binary_81.3.10%2Bgb223419%2Bchromium-81.0.4044.138_windows32_client.tar.bz2
Re: Focus in chrome web page 01/10/2020 15:48
Hi there.

We have had a test with this html file.

<html>
<title>Local Redirect</title>
<head>
<meta http-equiv="refresh" content="30; URL=https://duckduckgo.com/">
</head>
<body>
Just a moment...
</body>
</html>

If you test this in Windows the focus go to the search textbox but with SiteKiosk (with Chrome or Explorer Engine) don't work. In addition if you push the "Test" button in "Start Page and Browser" tab and "Start Page" Section with "https://duckduckgo.com" the behavior is the same.

Any ideas.

Thanks.
Re: Focus in chrome web page 01/10/2020 16:35
Hello,

If you push the "Test" button in "Start Page and Browser" tab and "Start Page" section SiteKisok will just open the URL you configured with the default browser configured on Windows (not in the SiteKiosk Browser).
I can reproduce the issue in SiteKiosk but it also happens in Google Chrome browser if https://duckduckgo.com is opened on browser start. So this is nothing SiteKiosk has influence to

As the redirect doesn’t help you can check to set the focus on your page with a little delay, so that the focus will be set after SiteKiosk has been loaded completely.
If you don’t have access to the code of the web page you may check this:
https://devblog.provisio.com/post/2019/05/17/Manipulating-the-DOM-within-the-SiteKiosk-Windows-Chrome-Browser.aspx

Or you check if it works when you reload the page after startup or when switching to Metro IE Skin.

Regards,
Michael Olbrich
Re: Focus in chrome web page 02/10/2020 14:29
Hello.

Sorry but the issue has influenced by Sitekiosk.

If you download the zip on the link below you can view that the default browser is "SiteKiosk Browser" so when you click "Test" the browser is "SiteKiosk". On the other hand if in the Sitekiok machine we open https://duckduchgo.com then behavior is correct.

http://btnas12.quickconnect.to/d/f/579370059986681671

Please watch the files in the zip.

Regards.
Pages (2): [1] 2 Next »