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
  the plugin do not work correctly with jquery 1.7? vic906 1 155 12th April 22:09
Last Post: Craig
  Qtips with jquery UI Issue sherwoodbear79 2 448 15th February 15:36
Last Post: sherwoodbear79
  Hiding tooltip problem sohailanwarpk 2 408 31st January 12:13
Last Post: sohailanwarpk
  [Solved] Need some help:codes in Jquery BabyShung 1 349 29th January 16:35
Last Post: Craig
  Tooltips not loading jQuery or other js files from parent document crodesign 2 484 13th January 22:19
Last Post: crodesign
  qTip & ASP.NET UpdatePanel Postback Problem qTipNoob 4 3,039 10th January 15:01
Last Post: naupadnara
  qtip with jquery mobile tap event finedesignz 1 652 4th January 21:18
Last Post: Craig
  qtip inside the jquery UI Dialog tiggi 1 789 20th October 18:49
Last Post: Craig
  Google Calendar like bubble for Jquery FullCalendar tdmohr 13 13,083 18th October 07:22
Last Post: jokepondy
  Cannot make jquery plugin or qtip plugin work anindasen 3 990 8th October 13:49
Last Post: Craig



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