enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Opentip.findElements(); destroy all Elements befor? #83

Open abollin opened 10 years ago

abollin commented 10 years ago

Sorry my English is very bad.

A part of my page (div) I reload it every 30 sec. with xmlHttp2.open('POST', 'reload_online_index.php');.

Inside there are many <span …… data-ot='" . $ToolTip[$key]. "' data-ot-delay='0' data-ot-hide-trigger='trigger' data-ot-removeElementsOnHide='true'>

After the ‘document.getElementById("div_bollin_online").innerHTML = xmlHttp2.responseText’ I put a:

Opentip.findElements();

Is there a way to destroy all the Elements before? The shadow gets always darker ( in the div that is not be reloaded) and the Tootip appears ever time later …

Thanks, Arthur

Yogu commented 10 years ago

Is there any solution to this problem yet? We load much of the contents via ajax and need to re-trigger findElements(), but it then creates two tooltips for the content that has not changed.