Sie sind nicht angemeldet.

1

Sonntag, 20. Juli 2014, 03:33

redirect the user when there is no html5 support (and no flash) instead of default error message?

Hello!

Sorry if it has been already answered, but I did my due diligence and could not find a solution for this.

So currently we're developing some tours that will use the html="only" embed setting. However, if let's say the user opens the material in an old browser, in which there's no support for the required technologies. In this case, we get the all familiar

ERROR:
HTML5 Browser with CSS 3D Transforms or WebGL support
required!

screen. So my question is, is there a way to catch this situation, and display another message, or even better redirect the user to a different html page?

Thanks!

2

Montag, 21. Juli 2014, 08:03

Hi,

yes, the onerror callback of the embedding function can be used for that:
http://krpano.com/docu/html/#onerror

e.g.

Quellcode

1
2
3
4
5
6
function embeddingError(msg)
{
     window.location.href = "errorpage.html";
}

embedpano({..., onerror:embeddingError});


Best regards,
Klaus

3

Donnerstag, 18. September 2014, 14:48

Uhh, somehow I missed your answer earlier, just found it after several months. Still, thank you very much, Klaus!