Default XML does not load


  • Hello,

    If I don't specify the XML nothing shows, I just get a blank screen. krpano has obviously loaded because if you right click you get the menu but nothing runs. According to the documentation if there is no XML set then it should default to the XML doc with the same name. This does not happen.

    To make embedding into other sites easier I don't want to set the xml document, but I'm not sure how to get round this problem. *cursing*

  • Michel,

    Here you are: link showing it not working

    The Javascript is:

    Code
    var so = new SWFObject("http://cdn.viewinter.net/view.swf", "krpanoSWFObject", "100%", "100%", "9.0.28","#000000"); so.addParam("allowFullScreen","true"); so.addParam("allowScriptAccess","always"); so.addParam("wmode","opaque");


    Doesn't work.

    If I add

    Code
    so.addVariable("xml", "view.xml");


    It works fine because the XML file is on the same server as the HTML document.

    I've moved the XML file (view.xml) to the same server as the SWF, with the same name and get nothing. It should default to the local XML file, with the same name and load that.

    EDIT: Just found this post which says if you pass variables it doesn't load the default XML. So what do you do if you want to use the default XML and still pass variables!??

    My problem is that if I specify the XML with a URL it breaks everything else as it tries to add that URL to all the other internal URLs

  • Hi viewinz,

    I am not sure....
    I have tried your not working url erasing all the variables: http://www.viewinz.com/view_test.html
    Doing this, the view.xml file (the default xml in this case) it is loaded.
    So, I think the reason is the explanation given by klaus here: http://www.krpano.com/forum/wbb/inde…D=1919#post1919

    the default XML is only loaded when no parameters are set!

    SAlut.

Participate now!

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