You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, January 9th 2018, 11:41pm

strange mailto: and tel: link behaviour

Dear Klaus,

so please check this out. After it loads just click once to hide the initial info display, and then click on the box in the upper right corner, it should open (slide out) a larger version of the plugin. There on the right side you can find an email address, which is at the moment an <a> tag with a href attribute filled out to be a mailto link.

After your last message I tried it out in different browsers, and surprisingly it works fine on Firefox (Quantum 57), but not in Chrome, Chromium or Opera. My OS is Windows 7 x64.

Also here's a youtube clip of what's happening in case the same doesn't happen for you.

And like I said, it didn't happen with version pr13, just with pr14.

2

Wednesday, January 10th 2018, 12:19am

Hi,

thanks - great bug-report - all information are there ;-)

The reason is this Chrome bug:
https://stackoverflow.com/questions/9740…-i-prevent-this

Chrome is wrongly sending an 'onbeforeunload' event when opening 'mailto:' links.

And in version 1.19-pr14 this event is used to manually free up all WebGL resources to avoid/reduce any browser-side WebGL memory leaks and problems...

I will try to find a workaround for this for the next release.
As manual workaround you could try the solution from the link above.

Best regards,
Klaus

3

Wednesday, January 10th 2018, 2:18am

Cheers, works fine now!

4

Friday, January 12th 2018, 12:31pm

Hi,

this will be fixed in the release.
The 'beforeunload' event usage will be entirely removed, there are too many side effects because of browser-bugs.

Best regards,
Klaus

Tuur

Sage

Posts: 3,385

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

5

Tuesday, January 23rd 2018, 1:42pm

@webseta,

can you provide working code?
I was not able to make it work with the given info on the stack overflow link.

Normally i would just call openurl(mailto:blabla@gmail.com,_self);

EDIT: I have a fix, thanks to JeromeBG
This line in your index.html head:

Source code

1
<iframe name="hidden-iframe" style="visibility:hidden;position:absolute;"></iframe>


This in your xml

Source code

1
2
3
4
5
6
7
<layer  balblabla  onclick="Mail();"

<action name="Mail" type="javascript" devices="html5">
<![CDATA[
window.open('mailto:mail@domain.com', 'hidden-iframe');
]]>
</action>


Thanks!
Tuur *thumbsup*

This post has been edited 1 times, last edit by "Tuur" (Jan 23rd 2018, 4:43pm)