URL does not open in the iframe on ios

Q&A about the latest versions
Post Reply
LProbert
Posts: 92
Joined: Thu May 21, 2020 11:53 am

It seems that Safari iOS wants to open the URLs that I am trying to load in an iframe into a new tab. Is this normal iOS behaviour for iframes?
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
By default, the web component opens a new page for Touch Screen devices.
The reason for this is that many use this component to open PDFs and iOS does not scroll PDF's in an iframe so to stop all the questions we set it so that all Touch Screen devices open a new page.
This is also true for the packaged default _v6 skins.

If you add a Web Component to a skin, select the Hotspot Template, ht_node.
Then look at the first action, it has an action filter with Has Touch, remove that line so it only shows *Opt_url.

Screenshot 2021-08-12 at 14.50.26.png
Screenshot 2021-08-12 at 14.50.26.png (38.15 KiB) Viewed 2069 times

Do the same for the other two actions.

This will now open an iframe in a mobile.
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
LProbert
Posts: 92
Joined: Thu May 21, 2020 11:53 am

I was one step ahead of you and spotted this in the skin.
The URLs that open in iframes fine within Chrome (ios) open in new tabs in Safari on iOS. This could potentially be an issue with PDF files and security. There's also some cross-domain links that work ok on desktop but maybe not on Safari which is much stricter it seems.
Post Reply