Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to destroy cached qtip and then recreate it
25th July, 02:48 (This post was last modified: 25th July 02: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
29th July, 06: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
  Bug found & fixed when you destroy, and recreate again in v1.0 rev 54 MacGarnicle 1 140 13th August 01:50
Last Post: Craig
  [Solved] [Solved] hide qtip or destroy it abdigadiga 7 825 8th May 10:10
Last Post: ikindred
  [Solved] Destroy and error message ('api.options'is null or not an object.) Hagge 4 897 31st March 12:03
Last Post: foobar
  qtip("destroy") problem with jquery 1.3.2 nevermore 3 1,318 12th March 09:12
Last Post: Craig
  can't destroy tooltip and ending up with 2 tooltips on one div kurtmarr 4 556 3rd March 11:01
Last Post: kurtmarr
  How to dynamically destroy tooltips? fchristant 0 323 1st March 00:27
Last Post: fchristant
  [Solved] Error after destroy qtip ngocluu 4 938 12th February 10:29
Last Post: Craig
  destroy dynamic tooltip onHide ? mjpowersjr 3 939 1st January 00:06
Last Post: Craig
  How to destroy all qtips ngocluu 1 466 16th September 21:17
Last Post: Craig
  destroy cached qTip ajcool123 5 568 10th September 22:21
Last Post: Craig