craigsworks.com - Support Forum

Full Version: [Solved] [Solved] hide qtip or destroy it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, Im new in webdeveloper and I finding some dificults.

I was posted about a thickbox problem that was my fault, but this a belive is not.

when close de thick box the qtip dont hide.
I have images with qtip acting like buttons for events. Some others dont hide sometimes but the close img always show and dont hide.

in thick box have a function named tb_remove() when thick box close.
I add this code in begin of this function:
JS Code
$('#TB_window img[title],#TB_window a[title]').each(function(){
            $(this).qtip("destroy");
        })


but have no results, the qtip still showing.

can anyone help?

another issue that I dont know how to correct is the title sometimes show, crag know about this why I found other topic talking about it, was it corrected?

tks. (i hope u understand me)
abdigadiga, do you get any errors output? And the title issue has been fixed in the latest branch revision available here: http://bazaar.launchpad.net/~craig.craig.../1.0/files
Hi Craig, tnks for help.

There's no error message in firebug. When I close thickbox clicking in a img that have a qtip, the qtip dont hide after thickbox close.

Sorry my ignorance, but the correction with title... Change some way to declare qtip? I got it and dont work. I see this morning that I have post in wrong place, Im using qtip 1.0 rc3.
abdiga, make sure that the tb_remove is actually being called.
yes it is.


in top right I have images acting like a menu. sometimes other dont hide, but the close always not work.
JS Code
<li class="close"><img src='<?php echo base_url() ?>assets/img/close.gif' o<strong></strong>nclick="tb_remove()" alt='' title="close" /></li>


tks
ignore strong tag, I try to bold the onclick... it not exists in my code.


JS Code
<li class="close"><img src='<?php echo base_url() ?>assets/img/close.gif' o<strong></strong>nclick="tb_remove()" alt='' title="close" /></li>
It was just pointed out to me there was an error in the destroy method of the rev44 build, which is now fixed in rev45. Grab it here and see if it fixes your problem: http://bazaar.launchpad.net/~craig.craig.../1.0/files
not work.

I think the problem is no execution of onmouseout event, because when I just click in close img the qtip still there, but if I click and quickly move the mouse out of img, the qtip is hide.

my qtip
JS Code
$(document).ready(function(){
        $('#TB_window img[title],#TB_window a[title]').qtip({
           style: { border:{color:'#A9A9A9'}, name: 'light',tip:true },
           show: 'mouseover',
//           hide: {when:{target:$('#TB_window')}}
           hide: 'mouseout',
           onHide: function(){
                $(this).qtip('destroy');
           }
        });
    });


I'm using jQuery 1.4.2

tks
I got a non ideal solution, but for my little webpage is good.

I put this code in tb_close()
JS Code
$('.qtip').remove();


tks for atention. good work and sucess for u craig good luck.
(tittle problem was solved I think)
(5th May 17:19)Craig Wrote: [ -> ]It was just pointed out to me there was an error in the destroy method of the rev44 build, which is now fixed in rev45. Grab it here and see if it fixes your problem: http://bazaar.launchpad.net/~craig.craig.../1.0/files
Thanks Craig that did it for me Big Grin
Reference URL's