Hi guys,
i'm trying to build a local krpano application with a virtual tour in it. It should be fully downloadable from chrome store (packaged app) and completely usable offline.
I'm encountering a problem in loading the xml file that cointains tour description (tour.xml).
It loads krpano, but fails loading the xml and I get "FATAL ERROR: tour.xml - loading or parsing failed!"
I read that chrome can't load local xml file, so i have to edit embedpano function to add something like
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET",'dineshkani.xml',false);
xmlhttp.send();
xmlDocument=xmlhttp.responseText;
Display More
Is it possible to edit the main js file autogenerated by MAKE VTOUR droplet? I can pnly get minified version of that file.
Any other suggestion to solve the problem?
Ty in advance
EDIT: I downloaded krpano Protect Tool to generate a .exe file to run the tour embedding all other files. I setup all variables as https://krpano.com/tools/kprotect/#top suggest and I generate the executable file. It loads well the first pano of the tour, but it doesn't load other panos linked from the first: I have an arrow that let the user go on with the tour, but once clicked, nothing happen.