Solved

How do I disable/hide/remove jquery tool tips on my page?

Posted on 2013-11-03
9
474 Views
Last Modified: 2013-11-08
Hi:

How do I disable/remove jquery tools tooltips?

Entities on my screen change dynamically based on user interactions.
I'd like to be able to remove or disable tool tips in certain instances.

Or is there away to enable/disable tooltips?

What is the best way to do this?

Thanks,
JohnB
0
Comment
Question by:jxbma
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 42

Expert Comment

by:Chris Stanyon
Comment Utility
Assuming your mean the jQueryUI Tooltips:

//add tooltips to all elements with a class of 'tooltip'
$( ".tooltip" ).tooltip();

//disable the tooltip for an element with an id of #element1
$( "#element1" ).tooltip( "option", "disabled", true );

Open in new window

0
 
LVL 1

Author Comment

by:jxbma
Comment Utility
I believe I am using "jquery-tools" library. I will try your suggestion though.
0
 
LVL 42

Expert Comment

by:Chris Stanyon
Comment Utility
Not sure you can do it with jQuery Tools :(
0
 
LVL 5

Expert Comment

by:Neil_Bradley
Comment Utility
Are the tooltips added to all of the links on your page or only select few? Are the tooltips activated by a class on your links? If so would not removing this class disable the pop up tooltip?
cheers
N
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 14

Accepted Solution

by:
dejaanbu earned 250 total points
Comment Utility
i think you can call  this.getTip().hide();

http://jquerytools.org/documentation/tooltip/#configuration
0
 
LVL 5

Assisted Solution

by:Neil_Bradley
Neil_Bradley earned 250 total points
Comment Utility
Hi dejaanbe,
aside from the jquery have a look at the code on the actual "a" tag. It might look something like this:
<a class="tooltip" title="My title tag that pops up in the tooltip" href="some url">

In this instance the tooltip attaches itself to the "a" tag via the class "tooltip". Remove this class and the tooltip is disabled.
Cheers,
N
PS: You may have something other class on the "a" tag. Have a look and see what you can find..
PPS: Maybe a link to your web page would help us?
0
 
LVL 1

Author Comment

by:jxbma
Comment Utility
Hi dejaanbe:

I think your solution is approaching something I can use.

However .getTip() is coming back as undefined.

Can you give an example of how this would/should/work?

I try something like this, where ".divInventoryPrice' has a tooltip associated with it.
So if I call:
$('.divInventoryPrice').getTip()

Open in new window

I get the following error message:
TypeError: Object [object Object] has no method 'getTip'
0
 
LVL 1

Author Closing Comment

by:jxbma
Comment Utility
Ha:

I just figured it out:

If I add the following to my ToolTip initialization, I can control
the visibility of tooltips:

true --> Show ToolTip
false -->> Don't Show ToolTip

onBeforeShow: function(b, e){
      return false;
},

Both your answers got me thinking and digging a little more.
Thanks for the replies.

JohnB
0
 
LVL 14

Expert Comment

by:dejaanbu
Comment Utility
sorry, i couldnt help u since i was on leave..Glad u have solved it urself
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now