Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
92
rated 0 times [  99] [ 7]  / answers: 1 / hits: 21132  / 12 Years ago, mon, february 25, 2013, 12:00:00

I'm trying to show an interactive SVG image drawn in a HTML page.
I'm not experienced with javascript/jQuery language, but using some jQuery plugins like PowerTip I'm currently able to show customized tooltips when hovering on SVG elements.
Customized tooltips appear, but disappear after a second, when they're closed by the appearance of default tooltip (in all browsers), showing so just the content of title element.
Is there a way to disable default tooltips?
Below is what I do to show my customized tooltips with PowerTip.



$('#myGraph .node').on({ powerTipPreRender: function() {
var title = ;
$('a text', this).each( function(i) {
title += + $(this).text();
});

var synonyms = ;
$(synonym, this).each( function(i) {
synonyms += <li> + parseSynonym($(this).text()) + </li>;
});
$(this).data('powertipjq', $([
'<p><b>' + title + '</b></p>',
'<p><b>Synonym(s)</b><ul>' + synonyms + '</ul></p>'
].join('n')));
}});


Tnaks in advance


More From » jquery

 Answers
9

I tried a lot of solutions, from renaming the title tag to setting the tooltip as an empty string.
At the end, I understood that's not possible to prevent showing the default svg tooltips.


[#80016] Saturday, February 23, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
desiraeleandrah

Total Points: 202
Total Questions: 111
Total Answers: 115

Location: Macau
Member since Mon, Nov 16, 2020
4 Years ago
desiraeleandrah questions
Thu, Nov 19, 20, 00:00, 4 Years ago
Wed, Nov 11, 20, 00:00, 4 Years ago
Wed, Oct 14, 20, 00:00, 4 Years ago
;