Designing a window

  • Hi,

    I'm trying to create a information window, which would appears when the user click on a hotspot.

    Is there any way to show some HTML inside a plugin, like a <p> or a <div>, which could be design with CSS like a "traditionnal" website ?

    I tried to make dynamic generated content and attached it to the plugin, but it doesn't work. The only thing I manage to show from a plugin is from an canvas objet, but use some more traditionnel HTML element could be easier ...


    This is king of thing I've tried ( jQuery loaded in header ) :

    Code
    var par = $('<p>Ceci est un paragraphe</p>');
    plugin.sprite.appendChild(par);


    Any advice or example ?

    Thanks !

  • Hi,

    there are a lot of examples, but not any for JS

    see here in the plugin interface documentation:
    https://krpano.com/docu/plugininterface/#js

    and here some example code:

    note - krpano needs to know the size of the plugin content (via the registercontentsize call) to be able to place it correctly,

    best regards,
    Klaus

  • ich bin auf der suche, irgendwie ein popup fenster(pdf,oder sonstwas) in iphone/pad aufzukriegen.

    thickbox geht nicht>>>>>>>>>>js(tb_show()) not found....
    standart popup aufruf geht auch nicht, wie es ausschaut.

    was kann ich tun.
    wie ist der oben angeführte example code zu verwenden, kann ich meinem problem damit näherkommen.


    ps.: thickbox und popup funktionieren zwar perfekt, auch mit html5only file, aber nicht am ipad.

Participate now!

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