|
destroy dynamic tooltip onHide ?
|
|
26th December, 14:50
Post: #1
|
|||
|
|||
|
destroy dynamic tooltip onHide ?
Hello,
I am dynamically generating tooltips on my site using qTip. The qTips contain a form that is submitted via ajax. After the form is submitted, I would like to destroy the tooltip, along with its contents. The contents of my tooltip has a button with an onclick attribute like this: onclick="ajaxSubmitStuff($(this).parent('form').serialize()); $(this).parents('.qtip').qtip('hide')" I havetried hooking the onHide trigger, which seems to cause an infinite loop: onHide: destroyTooltip function destroyTooltip() { $(this).qtip('destroy'); } any suggestions on how to destroy a tooltip after it hides would be helpful. Thanks in advance, Mike |
|||
|
29th December, 14:31
Post: #2
|
|||
|
|||
|
destroy dynamic tooltip onHide ?
mjpowersjr, have you tried using the beforeHide callback instead?
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
30th December, 04:40
Post: #3
|
|||
|
|||
destroy dynamic tooltip onHide ?
craig Wrote:mjpowersjr, have you tried using the beforeHide callback instead? Nope, just gave that a shot. Hooking beforeHide doesn't seem to throw an error in Chrome's javascript debugger, but the tooltip no longer hides ( and still remains in dom). If I hook onHide, the following error is thrown continuously (~10 per second) after the tooltip hides. jquery.qtip-1.0.0-rc3.js:33 Uncaught TypeError: Cannot read property 'interfaces' of undefined Thanks for the help, I tried to poke around the qtip lib to see whats going on, but I'm still pretty new to javascript. |
|||
|
31st December, 14:06
Post: #4
|
|||
|
|||
|
destroy dynamic tooltip onHide ?
mjpowersjr, how about simply queueing the destroy after the hide effect as taken place?
JS Code
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





