|
Destroy not destroying?
|
|
28th September, 21:11
Post: #1
|
|||
|
|||
|
Destroy not destroying?
Hey,
Love qTip, it's saved me loads of time (thanks!). Quick question though, i'm trying to destroy some qTips that have been dynamically created earlier on in the page. All qTips have the same target element but when I do $("#Element").qtip("destroy"); it only destroys the last qTip that I created. Do I need to do something else to destroy all the elements? Thanks |
|||
|
28th September, 22:04
Post: #2
|
|||
|
|||
|
Destroy not destroying?
This might sound odd but I can't remember how to do this in RC3 haha! I'm pretty sure RC3 had the old blanket command in it... so try this:
JS Code
If not... you could always keep destroying until the element no longer has data('qtip') set: JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
1st October, 19:07
Post: #3
|
|||
|
|||
|
Destroy not destroying?
Hey Craig,
I'm finding both of those methods make the page hang. IE, Firefox and Chrome ask me to kill the script. Jack |
|||
|
8th October, 20:00
Post: #4
|
|||
|
|||
|
Destroy not destroying?
Bump!
|
|||
|
8th October, 23:34
Post: #5
|
|||
|
|||
|
Destroy not destroying?
Are you using the RC3 release at the moment frogthief?
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
9th October, 18:30
(This post was last modified: 9th October 18:31 by 3lad3.)
Post: #6
|
|||
|
|||
|
Destroy not destroying?
I'm using:
jquery.qtip-1.0.0-rc3.min.js jquery-1.3.2.min.js jquery-ui-1.7.2.custom.min.js And no other plug-ins Looks like I downloaded it about a month ago |
|||
|
6th November, 20:17
Post: #7
|
|||
|
|||
|
Destroy not destroying?
Bump!
|
|||
|
6th November, 21:14
Post: #8
|
|||
|
|||
|
Destroy not destroying?
I tried doing this:
var vNumberOfQTips = vElement.data('qtip').current; for(var vQTipLoop = vNumberOfQTips; vQTipLoop > 0; vQTipLoop--) { vElement.data('qtip').interfaces[vQTipLoop].destroy(); } But that didn't work either, again it only seemed to remove one qTip, If I remove from the opposite directio of the array e.g. var vNumberOfQTips = vElement.data('qtip').current; for(var vQTipLoop = 0; vQTipLoop < vNumberOfQTips; vQTipLoop++) { vElement.data('qtip').interfaces[vQTipLoop].destroy(); } It will still only destroy one qTip but this time the other qTip. Very odd |
|||
|
23rd November, 00:06
Post: #9
|
|||
|
|||
|
Destroy not destroying?
frogthief, first off sorry for the late reply. I can't actually think of any elegant way to solve this particular problem... atleast not this the RC3 release. If the above code isn't working I'm not sure what to suggest. Did you get this solved?
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help




