XML Parsing failing using HTML5 viewer with wordpress

  • I have a problem to integrate krpano in wordpress using html5 viewer

    Flash version works well but HTML continuously display me XML parsing error "loading or parsing failed".

    I
    have developed my own code for 2 years to visualize the pano with
    wordpress. My method is the same that panopress. I use a shortcode inside
    a file function.php into a theme named Titan. (http://www.ipano.eu)

    Until
    tomorow i have just used krpano to visualize pano with flash. But i try to modify my code in order to work with
    html 5. But it doesn't work.

    My code works well when it's using with a simple html page but not when it is integrated in file function.php in wordpress

    See in http://fr.ipano.eu/Acropole/239 (fr is sub domain)

    Even if i
    meet all files (swf, js and images) into the same domain, in same
    folder that wordpress, that doesn't work with html5.

    My xml code start well <krpano> and end with </krpano>. I using a xml validator, it's ok

    In my configuration, swf and js are into folder "fr" with wordpress files
    Images in folder "img" and xml in folder "ad"

    The code to launch krpano is :
    <script src="'.AD_SITE.'/fr/swfkrpano.js"></script>
    <div id="pano" style="width:650px; height:330px;">
    <script>
    embedpano({swf:"'.AD_SITE.'/fr/krpano.swf", xml:"'.AD_SITE.'/ad/'.$fichier.'.xml", target:"pano"});;
    </script>
    </div

    (AD_SITE is the path of my website)

    the xml code is :

    <krpano version="1.0.8.14">

    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="0.25" fovmax="120" limitview="auto" />

    <include url="buttons-png-include.xml" />

    <image>
    <cube url="http://www.ipano.eu/img/Acropole4/Acropole4_%s.jpg" />
    </image>

    </krpano>

    Even i remove include and parameters, it doesn'twork.

    It's really mysterious. Could you try to help me ?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!