Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to destroy cached qtip and then recreate it
24th July, 16:48 (This post was last modified: 24th July 16:52 by android.)
Post: #1
How to destroy cached qtip and then recreate it
I have necessity to destroy a certain tooltip on hide.
To solve it, I use:

onHide: function()
{
$('#selector1, #selector2').qtip("destroy");
}

My problem is that after destroying a tooltip this is no longer available!
Trying to solve this problem I use prerender: false. Setting this attribute false, the tooltips will recreate in the future when necessary (am I doing wrong?).

But it does't work... result: my tooltip are destroyed for ever. Why qTip behaves in this way? I've setted prerender to false correctly.

I have real necessity to destroy tooltip because I'm using more #selectors associated to a tooltip (as you see: $('#selector1, #selector2, etc...').qtip [...] ). So I would free memory - after the tooltip is hidden - to avoid interferences.

What am I doing wrong?

Thanks for replies Smile
Find all posts by this user
Quote this message in a reply
28th July, 20:40
Post: #2
RE: How to destroy cached qtip and then recreate it
android, I'm not sure I understand.... destroy is used for the exact purpose you are trying to prevent, removing the tooltip permanently!

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Blanket Destroy not working migdalskiy 2 375 22nd August 22:44
Last Post: migdalskiy
  [Solved] Destroy Not Working? bobcarver 1 1,032 22nd May 22:38
Last Post: bobcarver
  [Solved] How to destroy a qtip when the original element is removed molicule 2 1,344 12th April 16:19
Last Post: detj
  [Solved] Error after destroy qtip ngocluu 5 2,454 30th November 17:30
Last Post: evancooperman
  [Solved] [Solved] hide qtip or destroy it abdigadiga 7 3,558 8th May 00:10
Last Post: ikindred
  [Solved] Destroy and error message ('api.options'is null or not an object.) Hagge 4 2,720 31st March 02:03
Last Post: foobar
  qtip("destroy") problem with jquery 1.3.2 nevermore 3 3,972 11th March 23:12
Last Post: Craig
  can't destroy tooltip and ending up with 2 tooltips on one div kurtmarr 4 1,364 3rd March 01:01
Last Post: kurtmarr
  How to dynamically destroy tooltips? fchristant 0 615 28th February 14:27
Last Post: fchristant
  destroy dynamic tooltip onHide ? mjpowersjr 3 3,105 31st December 14:06
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)