Combobox to load pano and populate iframe?

  • Hi,

    I have a html page layout with the viewer containing the nav buttons and combobox on the left and separate on the right an iframe. The combobox loads the images fine and each image has it's own xml file. What I would like to do is to populate the iframe (270px X 375px) on the right with information (Aircraft Specs) that relates to the aircraft image that is currently being displayed but to have the process somehow included into the combobox. This way choosing an aircraft would also load the specs at the same time.

    The specs would be on a html page so that the owners can update it in the future and not rely on me making adjustments to plugin image which is what i would have originally used.

    Here's the combobox code below

    Look forward to any ideas please if anyone has the time.

    many thanks,

    Andrew

  • Hi,

    when you want to modify an html iframe, the only way would be via javascript,
    e.g. call a javascript from krpano that makes that...

    xml:
    <action name="combobox:Cessna 152 Interior">
    js( updateiframe() );
    loadpano(02.xml,null,MERGE,BLEND(1));
    </action>

    html/js:

    Code
    function updateiframe()
    {
      ... 
    }

    best regards,
    Klaus

Jetzt mitmachen!

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