Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtip("destroy") problem with jquery 1.3.2
11th March, 17:00 (This post was last modified: 11th March 17:19 by nevermore.)
Post: #1
qtip("destroy") problem with jquery 1.3.2
Hi, im experiencing a bug with qtip.

Im attaching dinamycally the qtip to a set of images when i click a div that acts like a menu.

The bug occours when i click another sub menu and i try to destroy the qtip with his target. The code is.

JS Code
$(".qtip-element").each(function() {
 
        if ($(this).data("qtip"))
        $(this).qtip("destroy").remove();
 
    });


I've already searched solutions and found this qtip version http://bazaar.launchpad.net/~craig.craig.../1.0/files witch fix it in Firefox 3.x but the bug remains in IE 8.

The debugger of IE8 shows the next error "unspecified error" in jquery-1.3.2.min.js, Line 19 Character 35440

witch is: var G=this[0].getBoundingClientRect();

Some help would be appreciate.
Almost forgot, the bug triggers when the page is scrolled and occours with jquery 1.4.2 too.
Find all posts by this user
Quote this message in a reply
11th March, 17:27
Post: #2
RE: qtip("destroy") problem with jquery 1.3.2
nevermore, could you provide the full stack trace for the bug your seeing please?

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
11th March, 20:35
Post: #3
RE: qtip("destroy") problem with jquery 1.3.2
Hi, the bug stack is.

1. api.updatePosition(event, true); line 59 jquery.qtip-1.0.js
2. position = target.offset(); line 1117 jquery.qtip-1.0.js
3. var box = elem.getBoundingClientRect() jquery-1.4.2.js

I have been debugging and found some interesting stuff. The cause of the bug is that qtip is trying to calculate the offset (2) to a target that no longer exist (watching the target variable found that has the same id of one of the images that i tried to destroy), in other words the images that i "destroy" previously.

"target" and "elem" in 2 and 3 seem to be the same variable and have some strange properties, like fileSize="-1", readyState="uninitialized" when the bug fires.

Dont know why this is happening since i'm removing the images with remove().

Maybe image cache of the browser is causing this?.
Find all posts by this user
Quote this message in a reply
11th March, 23:12
Post: #4
RE: qtip("destroy") problem with jquery 1.3.2
nevermore, it's possible this is caused by an related bug in the destroy method of RC3. Try upgrading the the latest branch release 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
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Need some help:codes in Jquery BabyShung 1 65 29th January 16:35
Last Post: Craig
  Tooltips not loading jQuery or other js files from parent document crodesign 2 144 13th January 22:19
Last Post: crodesign
  qTip & ASP.NET UpdatePanel Postback Problem qTipNoob 4 2,449 10th January 15:01
Last Post: naupadnara
  qtip with jquery mobile tap event finedesignz 1 180 4th January 21:18
Last Post: Craig
  qtip inside the jquery UI Dialog tiggi 1 493 20th October 18:49
Last Post: Craig
  Google Calendar like bubble for Jquery FullCalendar tdmohr 13 10,211 18th October 07:22
Last Post: jokepondy
  Cannot make jquery plugin or qtip plugin work anindasen 3 706 8th October 13:49
Last Post: Craig
  [Solved] Blanket Destroy not working migdalskiy 2 379 22nd August 22:44
Last Post: migdalskiy
  On jQuery 1.5.1, tips don't appear in IE7 or IE8 panabee 3 1,172 23rd May 17:51
Last Post: Craig
  [Solved] Destroy Not Working? bobcarver 1 1,043 22nd May 22:38
Last Post: bobcarver



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