Krpano with php

  • hi i am working on a php cms and i want to add krpano to like a component in this cms.
    i can create xml files(xml.php) from php and mysql and embed in panorama but i can not pass params to this xml.php
    i tried globals and session not working ,
    tried jquery loads with params not working...and many other things.
    so basicly pano.php

    and xml.php cant get this itemid and albumid params because its loading in swf pano

    Code
    $itemid=$_GET['itemid'];
    $albumid=$_GET['albumid']

    so how can i send params from pano.php to xml.php
    or how can i load this xml.php in to pano.php

    i check my old post but its still does not work?

  • problem solved with changing like this .Thank you

    <script src="/bilesen/panorama/tema/pano.js"></script>
    <script type="text/javascript">
    // &lt;![CDATA[

    var swf = createswf("/bilesen/panorama/tema/pano.swf", "krpanoSWFObject", "800", "600");
    swf.addVariable("xml", "/bilesen/panorama/tema/xml.php?ilanid=<?php echo $ilanid ?>&albumid=<?php echo $albumid ?>");
    swf.embed("pano");


    function krpano()
    {
    return document.getElementById("krpanoSWFObject");
    }

    function loadpano(xmlname)
    {
    krpano().call("loadpano(" + xmlname + ", null, MERGE, BLEND(1));");
    }

    // ]]&gt;
    </script>

Jetzt mitmachen!

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