Link to home
Start Free TrialLog in
Avatar of andieje
andieje

asked on

javascript tooltip that works inside an asynchronous update panel

Hi

does anyone know of a javascript tooltip that will work inside a div whose content is created by an asynchronous postback. The current tooltip i am using seems to have stopped working because it relies on code in the page load event (i presume) which now isn;t occuring due to my use of aysnchronous postback

thanks
andrea
ASKER CERTIFIED SOLUTION
Avatar of third
third
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Basilisci
Basilisci

var target = document.getElementById("xxx");
target.innerHTML = '<div title="A bulletproof tooltip.">Some content.</div>';

or

var target = document.getElementById("xxx");
var node = target.appendChild(document.createElement("div"));
node.appendChild(document.createTextNode("A bulletproof tooltip."));

node.setAttribute("title", "A bulletproof tooltip.");


;)
Avatar of andieje

ASKER

thanks