Problems when displaying panos in fierfox

  • Hi,
    I've been searching for this error in the forums but couldn't find anyone with the same issue.
    I'm having trouble when displaying a pano with firefox 3.0.8 and krpano viewer 1.0.8
    krpano viewer seems to get stuck while trying to load the pano and throws the following:

    INFO: krpano 1.0.8 beta 6 (build 20090302)
    INFO: Flashplayer WIN 10,0,12,36 PlugIn
    ERROR: loading plugin "image/logo_viviendafe.png" failed
    ERROR: download of "vtours/00002/comedor.jpg" failed

    The javascript code I'm using to load the pano is the following:

    <script type="text/javascript">
    // <![CDATA[
    if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
    {
    var so = new SWFObject("krpano/krpano.swf", "krpanoSWFObject", "100%", "500", "9.0.28","#000000");
    so.addParam("allowFullScreen","true");
    so.addVariable("pano", "vtours/00002/comedor.xml");
    so.useExpressInstall("krpano/swfobject/expressinstall.swf");
    so.setAttribute("xiRedirectUrl", window.location);
    if ( so.write("krpano") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
    }
    else
    {
    document.getElementById("krpano").innerHTML = '<table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Adobe Flash Player 9 needed<br><br><br><a href="http://www.adobe.com/go/getflashplayer/" target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/…lash_player.gif" BORDER="1"></a><br>...click here to download...<br><br><br><br></center></td></tr></table>';
    }
    // ]]>
    </script>

    I've tested the same pano in IE and Chrome and it works perfect.
    Any ideas of what could be happening?

  • i reported an issue with FF3 and the scrolling thumbnails plugin. but now that i think about it a little more the issue was more than the scrolling thumbnails. my plugins that i had setup tweens on did not function either. i suspect an issue with FF3. i was on a MAC when I had my issues so I thought it was a MAC thing not so much FF3. i can'f confirm if this as i do not use FF3 or MAC i was at a cleints site when this happened.

  • Hi,

    when I try to open the images direct in the browser,
    I got an this Error from Firefox/Chrome and IE:

    Quote

    Forbidden
    You don't have permission to access /vvf/vtours/00002/comedor.jpg on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    maybe that your IE and Chrome had the file in the cache... ?
    try clearing the cache and check again...

    best regards,
    Klaus

  • Hello Klaus.
    I have already seen that forbidden error before, which result very weird to me since I didn't protect any directory of the site.
    The thing is I clrear caches and it keeps working on IE and Chrome. I already asked a couple of friends to access that URL and they could see the panos correctly, so I guess you should see them using those browsers too.
    Maybe this forbidden error is the real cause of the problem, but it seems to be managed in a different way by the different browsers.
    I'll contact hosting people to see if there is any permission problems.

    Thanks!

  • I can see it on IE but not on Fx besides the permisions, I think Fx is not that forgiven as IE since i get this when i open the xml directly

    XML Parsing Error: not well-formed
    Line Number 65, Column 74: onclick="loadpano(antebanio.xml,view.hlookat=-86.3&view.vlookat=4,null,BLEND(1)"

  • Good point Shanti! :)
    There was a missing ')' in the load js function call.
    I still get the xml parsing error, but the pano is displaying correctly now at least.
    Is there anything I can add to the xml so it does not show the info and errors section when something is wrong?

    Thanks a lot!

  • Unfortunately, the first pano of the tour displayed correctly, but when I clicked in the hotspot to go to the next pano, the error was thrown again:

    ERROR: download of "vtours/00002/antebanio.jpg" failed

    This time, there is no missing ')'.
    The xml parsing always shows an error in the 'view.vlookat=' argument of the load() call.

    I'm calling the load function this way:

    onclick="loadpano(habitacion2.xml,view.hlookat=1.90&view.vlookat=7.4,null,BLEND(1));"

    This is done from the <hotspot> tag.
    I'll let you know if I find anything else.

    Thanks

  • why not put the

    view.hlookat=1.90&view.vlookat=7.4

    inside the xml, since you already calling a new xml

    and call it like this
    onclick="loadpano(habitacion2.xml,null,null,BLEND(1));"
    instead of
    onclick="loadpano(habitacion2.xml,view.hlookat=1.90&view.vlookat=7.4,null,BLEND(1));"

    or wrap the parameters in " (quotes) like in the documentation:

    Quote
    • parameters


    direct parameters like "sphere=image.jpg&view.fov=120"

    maybe one of those would help ? *whistling*

  • Hello Shanti.
    I tried that and now the xml files are not throwing errors any more.
    Anyway, I'm still having trouble displaying the panos.
    I'm afraid that the forbidden error is causing the problem, but I don't certainly know how to fix it yet.

    Thanks!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!