Рождественские праздники компании
Североамериканская штаб-квартира в Майами, США: 25 декабря 2015, 1 января 2016
Европейская штаб-квартира в г. Мюнстер, Германия: с 21 декабря 2015 по 3 января 2016
Ограниченная поддержка доступна в течение этого периода.
PROVISIO желаем вам веселого Рождества и счастливого Нового Года!

 

Запрос поддержки: "This window is not available" dialogue box

Описание

Running Chrome on Windows. When pages are being correctly blocked the "This window is not available" dialogue box appears, with a go back navigation option. Question: Is there a way to automatically navigate back to the start page / return to previous page? Apologies if solution already posted.

Ответ: (6)

Re: "This window is not available" dialogue box 01.04.2020 14:29
Hello,

It is a default behavior that a page with the information “This webpage is not available” is displayed when a navigation is blocked.
Changing this behavior is only possible with customizing SiteKiosk (e.g. using an external script or customizing the code of the “This webpage is not available” webpage with the back button).

Here an example without further free support (otherwise you may contact us via e-mail for a customized solution against charge):
1. Open the file “blocked1.html” at “C:\Program Files (x86)\SiteKiosk\SiteKioskNG\assets\errorPages” with an editor (e.g. Notepad).
2. Search for this function:

<script type="text/javascript">		
	function onLoad() {
		var titleElement = document.getElementById("title");
		if (titleElement.innerHTML === "") {
		titleElement.innerHTML = "$String(ErrorPage.FailedToLoadUrl)";
		}
	}
</script>

And add these lines below:

window.setTimeout(AutoNavigateBack,3000);
function AutoNavigateBack(){
	history.go(-1);
}

That it looks like this

<script type="text/javascript">		
	function onLoad() {
		var titleElement = document.getElementById("title");
		if (titleElement.innerHTML === "") {
		titleElement.innerHTML = "$String(ErrorPage.FailedToLoadUrl)";
	}
}
window.setTimeout(AutoNavigateBack,3000);
function AutoNavigateBack(){
		history.go(-1);
	}
</script>


It will make SiteKiosk automatically navigating back after 3 seconds when the blocking page is displayed.

Regards,
Michael Olbrich
Re: "This window is not available" dialogue box 01.04.2020 15:12
Hi Michael

Thanks for that, and for such a speedy response. However, isn't there a danger of just getting into an infinite loop if one navigates back to the previous page, that was blocked and hence the original message?

The other part of my posted question was whether it is possible to navigate back to the start pag?

Some pages are just blocked with a standard no entry style sign popup, whilst others get both the pop-up and the Access Denied dialogue box. Why.

This might be default behaviour, but having migrated from an earlier version which just blocked navigation with the pop-up window, this getting stuck in a dead-end happening in v9 much clunkier.

Regards
Re: "This window is not available" dialogue box 02.04.2020 9:36
Hello,

You are of course right in saying that navigating back once might lead to a loop under certain circumstances. This was just a quick example of how you can proceed.
You may add this code instead to explicitly load the start page URL (here in the example with Google):

window.setTimeout(function () { window.location.href = "https://www.google.com"; }, 3000);


But please understand that our free support cannot offer any assistance with creating your own code or customizing the skin files. If you need further help you may contact us via e-mail to find a solution against payment for your needs. In case you are interested please write a detailed description to support-europe(at)provisio.com that we can check the technical feasibility and the amount of work to make a quotation. The adjustment fees are depending on the complexity of the changes and in general it costs 120 Euro per hour.



Also SiteKiosk 9.x usually tries to block the page before it is loaded.
But if this is possible depends on the webpage that will be loaded and at which time SiteKiosk gets the information which URL is loaded.
Furthermore there is a difference between using IE based and the Chromed Browser skin (available since SiteKiosk 9.x). Normally, SiteKiosk is better able to intervene and block pages when using the Chrome Browser Skin than when using the IE Web Browser Control, which is used with IE-based skins.
But as written, this also depends on the web page code (redirects, reloading of content via script) and, of course, on the settings in the surfing area.


Regards,
Michael Olbrich
Re: "This window is not available" dialogue box 02.04.2020 10:15
Hi Michael

Great. I think I've got the tools now to have a go at solving this.

Many thanks for the explanation of the difference in blocking behaviour,

All the best

Phil
Re: "This window is not available" dialogue box 02.04.2020 10:42
Thank you for your feedback.
Take care & stay healthy.
Pages (2): [1] 2 Next »