You are not logged in.

Dear visitor, welcome to 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.


Wednesday, April 20th 2011, 5:45pm

viewer.embed() wiping out entire webpage on iOS devices


I've got a javascript file that loads multiple panos on a page at once and sets them all up. Nothing unusual, and nothing I've not done before. I have a license for the desktop and mobile versions of krpano.

On the desktop, the script works perfectly 100% of the time. On iOS devices, once the viewer.embed() function is called, it wipes the entire web page! The whole page goes blank white with zero errors. If I comment out the embed() call, everything works properly.

I'll try to put up a demo but does anyone have any idea what could be causing this?

EDIT: In desktop Safari, when I make the user agent ipad, load the page, then right click and 'inspect element', the only thing in the HTML is a <head> tag with the krpanoiphone.license.js and krpanoiphone.js scripts. The <body> has been entirely wiped out.



This post has been edited 1 times, last edit by "crakalakin" (Apr 20th 2011, 6:22pm)


Thursday, April 21st 2011, 11:21pm


don't put the krpano javascript files in the <head> tag,
they need to be in the <body> tag,

when using the embed() dynamically, then use the latest version,
and with either 'embedded licenses' (e.g. build by the MAKE PANO or MAKE VTOUR droplets),
or by including all javascript files manually,

best regards,


Friday, April 22nd 2011, 4:12pm


Appreciate the help. Manually loading the iOS JS files and using the latest version of them all worked for me.