[jQuery] Nested cluetips and other problems
Hi ppl,
First: thanks for jQuery!
But i ran into some problems.
The first one is that I need nested cluetips / tooltips;
The cluetip content i use, holds another cluetip which partially
works: the first cluetip disappears as the second one appears.
Problem 2 is that every time i do a mouseover the tooltip gets
extended with another Close button.
Problem 3 is that it is hard to set the content for a cluetip. My
dirty trick is to do: obj.title = content or obj.href = url. Things
like {rel: or href:} don't seem to work, as ajax is fine too.
My code:
HTML
<a id='customer1' class='customer1' title='test'
onmouseOver="tip(this);" onmouseout"">Test</a>
JQuery
function tip (obj) {
var content = "<table class=\'customer\'><tr><td>Name</td><td><a
id='customer2' class='customer2' onmouseOver=\"tip(this);\">Hank</a></
td></tr></table>";
obj.title = content;
getYourClueOn = 'a.'+obj.id;
$(getYourClueOn).cluetip({sticky: true});
}
Regards,
Elger