|
can't destroy tooltip and ending up with 2 tooltips on one div
|
|
2nd March, 06:19
Post: #1
|
|||
|
|||
|
can't destroy tooltip and ending up with 2 tooltips on one div
Hi,
I am loading a page 2 (jquery ui dialog) and on the second loading I am trying to change the tooltip. However what I end up with is 2 tooltips instead of one with the new content. I've tried to do the $(myselector).qtip('destroy') but it crashes on line 1524 of * Version : 1.0.0-rc3 downloaded just now from http://bazaar.launchpad.net/~craig.craig.../1.0/files JS Code
anyone got any ideas. This is my routine I've built and put in a common js file JS Code
thanks |
|||
|
2nd March, 19:13
Post: #2
|
|||
|
|||
|
RE: can't destroy tooltip and ending up with 2 tooltips on one div
Are you updating your content by any chance kurtmarr? If you're removing elements with qTips attached make sure to call the .qtip('destroy') first.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
2nd March, 22:16
(This post was last modified: 2nd March 22:17 by kurtmarr.)
Post: #3
|
|||
|
|||
RE: can't destroy tooltip and ending up with 2 tooltips on one div
(2nd March 19:13)Craig Wrote: Are you updating your content by any chance kurtmarr? If you're removing elements with qTips attached make sure to call the .qtip('destroy') first. Hi Craig. Thanks for your answer. As you can see by my code I am trying to call 'destroy' first but it crashes on line JS Code
Any ideas? thanks |
|||
|
2nd March, 22:29
Post: #4
|
|||
|
|||
RE: can't destroy tooltip and ending up with 2 tooltips on one div
(2nd March 22:16)kurtmarr Wrote:(2nd March 19:13)Craig Wrote: Are you updating your content by any chance kurtmarr? If you're removing elements with qTips attached make sure to call the .qtip('destroy') first. I'm not sure if this is the right way to go about it, but it works for me: From what I can tell, the problem you're having is that your code doesn't check if there is a qtip attached or not (on first run, I assume it doesn't). Try: JS Code
|
|||
|
3rd March, 01:01
Post: #5
|
|||
|
|||
|
RE: can't destroy tooltip and ending up with 2 tooltips on one div
sweet. Now it works.
Thanks
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




