Hi All,
As a follow-on from my post in the Stylesheets topic (I''ve raised a bug with Madcap for that original issue), does anyone know if I can suppress the tooltips using jQuery?
I have tried following the details from a website and inserting the following code into the Master Page:
$(function(){
$('*').tooltip({
track: true
});
$(".raise_a_ticket-button").tooltip("disable");
});
This however, is not working, and the tooltips are still displayed.
Any assistance with this would be greatly appreciated.
Many Thanks
Adrian
Use of JQuery to Suppress Tooltips
Re: Use of JQuery to Suppress Tooltips
In recent Flare versions (2019r2 onwards?), MadCap uses some code to display the tooltips - it's not the default tooltip displayed by the browser.
If you use F12 to inspect the HTML, you'll see that when you hover over an icon, MadCap adds <p class="tooltip>xxx</p> at the end of the page.
So whilst you can't really stop the code from running, you can easily hide the tooltip using CSS:
BTW, I'm not aware of any tooltip function in the jQuery API. I'd guess your code is for jQueryUI (or something else), which is not included in the Flare output.
If you use F12 to inspect the HTML, you'll see that when you hover over an icon, MadCap adds <p class="tooltip>xxx</p> at the end of the page.
So whilst you can't really stop the code from running, you can easily hide the tooltip using CSS:
Code: Select all
p.tooltip
{
display: none !important;
}
-
- Propeller Head
- Posts: 33
- Joined: Mon Sep 16, 2019 5:23 am
Re: Use of JQuery to Suppress Tooltips
CSS method is the best and easiest so far to disable tooltips.
Flare uses QTip it seems to create and display tooltips:
https://craigsworks.com/projects/qtip/
Flare uses QTip it seems to create and display tooltips:
https://craigsworks.com/projects/qtip/
-
- Propellus Maximus
- Posts: 1979
- Joined: Tue Nov 28, 2006 11:18 am
- Location: Crossroads of the West
- Contact:
Re: Use of JQuery to Suppress Tooltips
I'll just put in a plug for accessibility: if you have any disabled users who are using a screen reader to access your content, they rely on things like tooltips and other meta markings to be able to "read" the document. Please assess the business case for removing tooltip functionality and weigh it against the chances of getting sued for not having section 508-compliant output.