Help to creat a javascript plugin with html elements

  • Hi

    i try to develop my own combobox.js plugin

    i use the plugintemplate.js as a base

    in my main html i created a selectbox:

    Code
    <select name="selectbox">
    
    
    <option value="test">test</a>
    
    
    </select>

    in my plugintemplate.js i added:


    Code
    plugincanvas = document.getElementById("selectbox)");
                plugincanvas.width  = 256;
                plugincanvas.height = 256;
                plugincanvas.onselectstart = function() { return false; };  
                plugin.sprite.appendChild(plugincanvas);

    i added a layer with plugintemplate.js as source url in my krpano.xml

    when i launch my project i can see my combobox, but i can't click on it?

    it doesn't seem to receive mouse events.

    thanks a lot!

  • Hi,

    Please Klaus, i really need help on this:

    when i do a javascript plugin with this code:


    the select appears but is non clickable...

Participate now!

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