You are not logged in.

H.Lunke

Beginner

  • "H.Lunke" started this thread

Posts: 4

Location: León, Nicaragua

  • Send private message

1

Thursday, August 9th 2018, 2:26pm

Dynamic creation and removal of old combobox

Hi,

i have a problem using the old combobox-plugin, which is dynamically created to display several hotspot-specific options.
On removal of the cobobox-layer the combobox disappears but the corresponding DIVs remain in the DOM, interfering with the pano movement and other hotspots' mouseover events.
How can the DIVs be completely removed?

Thanks in advance,
Michael
Paradise is exactly like where you are right now -
only much, much better.
[Laurie Anderson, Language is a virus]

toosten

Intermediate

Posts: 451

Location: Berlin

Occupation: freier Software-Entwickler ( HTML, JS, PHP, JSP, Flash, AS3, C++, Java, krpano, ---)

  • Send private message

2

Saturday, August 11th 2018, 11:06pm

https://krpano.com/docu/xml/#layer.sprite

var e= krpano.get(layer[..].sprite);
e.parentNode.removeChild(e);