Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] [Solved] hide qtip or destroy it
4th May, 19:33
Post: #1
[Solved] [Solved] hide qtip or destroy it
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)
Find all posts by this user
Quote this message in a reply
5th May, 11:27
Post: #2
RE: hide qtip or destroy it
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

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
5th May, 12:03
Post: #3
RE: hide qtip or destroy it
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.
Find all posts by this user
Quote this message in a reply
5th May, 12:56
Post: #4
RE: hide qtip or destroy it
abdiga, make sure that the tb_remove is actually being called.

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
5th May, 16:35 (This post was last modified: 5th May 16:42 by abdigadiga.)
Post: #5
RE: hide qtip or destroy it
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>
Find all posts by this user
Quote this message in a reply
5th May, 17:19
Post: #6
RE: hide qtip or destroy it
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

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
5th May, 19:15 (This post was last modified: 5th May 19:41 by abdigadiga.)
Post: #7
RE: hide qtip or destroy it
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)
Find all posts by this user
Quote this message in a reply
8th May, 00:10
Post: #8
RE: hide qtip or destroy it
(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
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  hide on unfocus in build 55 bradw2k 1 95 20th January 17:03
Last Post: Craig
  [Solved] Is there an easier way to show/hide tooltips dynamically? gloosemo 1 399 17th October 15:58
Last Post: Craig
  [Solved] [Solved] Hide all other tips runge 2 733 30th September 14:31
Last Post: knowlton
  [Solved] Hide tooltip when clicked dabd 10 806 23rd August 18:55
Last Post: dabd
  [Solved] Blanket Destroy not working migdalskiy 2 379 22nd August 22:44
Last Post: migdalskiy
  onLoad and then hide after 10 seconds mediaslave 3 1,775 16th June 17:02
Last Post: weber
  [Solved] Destroy Not Working? bobcarver 1 1,043 22nd May 22:38
Last Post: bobcarver
  [Solved] How to destroy a qtip when the original element is removed molicule 2 1,351 12th April 16:19
Last Post: detj
  Show/Hide according to dynamic content ? Lyreco 5 1,096 19th January 12:19
Last Post: Craig
  [Solved] Multiple Hide Events? svjard 1 808 18th January 14:10
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)