openpopup - refused to connect.

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
DeVille70
Posts: 32
Joined: Friday 04 December 2015 21:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sandnes, Norway
Contact:

openpopup - refused to connect.

Post by DeVille70 »

I have defined a block to openpopup with a url to a public wet site. The pop up window opens, but only show "refused to connect". This is indepedant from the url, I even tried the simple https://www.vg.no/ but same output.

Anyone who can help?
DeVille70
Posts: 32
Joined: Friday 04 December 2015 21:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sandnes, Norway
Contact:

Re: openpopup - refused to connect.

Post by DeVille70 »

Seems to a problem only with urls with https - as http works fine.

???
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: openpopup - refused to connect.

Post by Lokonli »

DeVille70 wrote: Thursday 07 January 2021 14:51 Seems to a problem only with urls with https - as http works fine.

???
Some sites do not allow to present the content in a iframe, like vg.no
(by setting the X-Frame-Options http header)

By adding forcerefresh:2 as block parameter, the content is loaded via the Dashticz CORS proxy that strips out the X-frame-option as well, so you see some content, although most internal links and images will not be present.

There is no easy workaround as far as I know.

What I could is add the option to open the popup window in a separate window. Would that be useful?
DeVille70
Posts: 32
Joined: Friday 04 December 2015 21:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sandnes, Norway
Contact:

Re: openpopup - refused to connect.

Post by DeVille70 »

Thanks.

forcerefresh:2 works as you said, but also has the limitations that you indicated, so it does not really do the trick.

A separate window would be fine. Grateful if you could give me a pointer on how to do that.

Alternatively, can the 'buttons' defintion be used in any useful way to overcome this?

Thanks again for your support.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: openpopup - refused to connect.

Post by Lokonli »

For 'url' parameters the 'newwindow' parameter is used to determine whether the url will be opened in a new window. as a new tab or as an popup frame. The same mechanism could be used for openpopup(OnOff). Currently openpopupOnOff will always open a popup frame.

I want to keep 'autoclose' functionality. I'll do some tests.
DeVille70
Posts: 32
Joined: Friday 04 December 2015 21:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sandnes, Norway
Contact:

Re: openpopup - refused to connect.

Post by DeVille70 »

newwindow 0 or 1 works as intended, but both have undesired side effects that i had not considered. Since I use WallPanel for a clean interface, I have no button for back or any option to close current window.

Any ideas much appreciated.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: openpopup - refused to connect.

Post by Lokonli »

DeVille70 wrote: Sunday 10 January 2021 19:59 newwindow 0 or 1 works as intended, but both have undesired side effects that i had not considered. Since I use WallPanel for a clean interface, I have no button for back or any option to close current window.

Any ideas much appreciated.
When it's not allowed to show the url in a frame, then the options are limited.

I can add autoclose support for new windows.
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: openpopup - refused to connect.

Post by Lokonli »

And with Fully Kiosk you could add a 'back' button at the top, which will close the new window.
DeVille70
Posts: 32
Joined: Friday 04 December 2015 21:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sandnes, Norway
Contact:

Re: openpopup - refused to connect.

Post by DeVille70 »

An option to autoclose new windows would be great, thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest