Hi,

I am embedding a flash viewer specifically krpano (www.krpano.com). In the main page I am able to see it on this url.

http://localhost/drupal-6.12/

The front page is the same as

http://localhost/drupal-6.12/node/21 -> i made this the default front page

But when I try to access using the url with the node (http://localhost/drupal-6.12/node/21). The flash app wont load. I used firebug to step through the code and all the lines are being executed.

In scripts.js I only have these lines

function loadKrPano(xmlFileName)
{
try
{
if (typeof(deconcept) !== 'undefined' &&
deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var so = new SWFObject("krpano/krpano.swf", "krpanoSWFObject","100%", "100%", "9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addParam("wmode","opaque");
so.addVariable("pano", xmlFileName);
so.useExpressInstall("krpanoswfobject/expressinstall.swf");
so.setAttribute("xiRedirectUrl", window.location);

if ( so.write("krpano-div") )
{
var mousewheelfixes = new SWFkrpanoMouseWheel(so);

}
}
else
{
document.getElementById("krpano-div").innerHTML = 'Flash Player 9 needed';
}
}
catch(err)
{
alert(err);
}
}

And in the node I just have these lines.

$(document).ready(function() { loadKrPano('panoramas/fort-santiago/fort-santiago.xml'); });

Is there a difference on how these pages are loaded?

Any krpano users here too? help please!

Thanks,
Milo

Comments

milotimbol’s picture

I am answering my own question. I disabled the clean urls and it worked. On the clean urls the xml file locations were incorrect. But i want to work with clean urls, so I'm going to have to figure out how to make paths work for it.