Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] qTip 1.0.0RC3 does not work with latest jQuery release
17th February, 19:42
Post: #1
[Solved] qTip 1.0.0RC3 does not work with latest jQuery release
Im using qTip 1.0.0.RC3 on a number of my client websites. All my client websites use the latest version of jQuery - 1.4. However I have been told the tooltips have stopped working since the beginning of the week. On Saturday, 13th Feb, jQuery released version 1.4.2 and by the looks of things qTip doesnt like it.

Will there is a new release of qTip that works with jQuery 1.4.2 ?

(I cannot use an older version of jQuery, such as 1.3.2 as i'm using jQuery's 1.4 new features...)
Visit this user's website Find all posts by this user
Quote this message in a reply
18th February, 01:13
Post: #2
RE: qTip 1.0.0RC3 does not work with latest jQuery release
seandelaney, try out the new branch releases of the 1.x series. These will likely become 1.0 on the 28th if no major bugs are found:

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
18th February, 04:06
Post: #3
RE: qTip 1.0.0RC3 does not work with latest jQuery release
Craig, thanks for the update.

This drove me a bit crazy today. I was including Google's jQuery http://ajax.googleapis.com/ajax/libs/jqu...ry.min.js. This was fine as they were including v1.4.1 but as soon v1.4.2 was made live on Feb 13, errors started appearing on my site. I've changed the include now to http://ajax.googleapis.com/ajax/libs/jqu...ery.min.js (making specifying 1.4.1 explicitly).

For the record, the error I was receiving was:
1
f(this).data("qtip") is null
Find all posts by this user
Quote this message in a reply
18th February, 05:43 (This post was last modified: 18th February 06:18 by seandelaney.)
Post: #4
RE: qTip 1.0.0RC3 does not work with latest jQuery release
(18th February 04:06)eteanga Wrote:  For the record, the error I was receiving was:
1
f(this).data("qtip") is null

This is the same error I get but I have not tried one of the branch releases yet. However if you have tested a branch release and it has worked fine please let me know. I hope to download and test a branch release either tomorrow or Friday.
----------------- UPDATE -------------

I have downloaded and test a branch release as suggested by Craig with jQuery 1.4.2 (I also use Google's jQuery CDN) and the issue still exists. qTip does not appear to work correctly.

Error message:

1
f(this).data("qtip") is null


Sean
Visit this user's website Find all posts by this user
Quote this message in a reply
18th February, 10:16
Post: #5
RE: qTip 1.0.0RC3 does not work with latest jQuery release
I just tried the latest branch release, but unfortunately it's not working. Oddly, when I tried the minimized version, it didn't seem to do anything at all; no errors, but no tips either. So I downloaded the latest non-minimized version (jquery.qtip-1.0.js) and I'm still getting the same error, in connection with jquery 1.4.2 (I also use Google for it). My error's a little bit different, though; on page load, I get:

Uncaught TypeError: Cannot read property 'interfaces' of null

That's happening on line 135 of jquery.qtip-1.0.js:

$(this).data('qtip').current = $(this).data('qtip').interfaces.length;

Hopefully this info helps...I need my tips back! ;-)

Thanks.
Find all posts by this user
Quote this message in a reply
20th February, 15:58
Post: #6
RE: qTip 1.0.0RC3 does not work with latest jQuery release
Line 131 of jquery.qtip-1.0.js:
1
if(typeof $(this).data('qtip') == 'object')


Change to
1
if(typeof $(this).data('qtip') === 'object' && $(this).data('qtip'))
Find all posts by this user
Quote this message in a reply
20th February, 16:16
Post: #7
RE: qTip 1.0.0RC3 does not work with latest jQuery release
Thanks for this... I'd be interested to hear about plans for perhaps a qtip-1.0.1 with official changes to support the latest JQuery, since I hesitate to patch a library we're using (though a one-liner's not bad, obviously). I'll give it a shot in any case, thanks!


(20th February 15:58)simshaun Wrote:  Line 131 of jquery.qtip-1.0.js:
1
if(typeof $(this).data('qtip') == 'object')


Change to
1
if(typeof $(this).data('qtip') === 'object' && $(this).data('qtip'))
Find all posts by this user
Quote this message in a reply
21st February, 16:09 (This post was last modified: 21st February 16:09 by Ville.)
Post: #8
Thumbs Up RE: qTip 1.0.0RC3 does not work with latest jQuery release
(20th February 15:58)simshaun Wrote:  Line 131 of jquery.qtip-1.0.js:
1
if(typeof $(this).data('qtip') == 'object')


Change to
1
if(typeof $(this).data('qtip') === 'object' && $(this).data('qtip'))

Thanks, this fixed the problem for me!
Find all posts by this user
Quote this message in a reply
21st February, 23:10
Post: #9
RE: qTip 1.0.0RC3 does not work with latest jQuery release
Thanks, this fixed the problem for me!
Visit this user's website Find all posts by this user
Quote this message in a reply
23rd February, 03:59
Post: #10
RE: qTip 1.0.0RC3 does not work with latest jQuery release
Thanks for the fix simshaun, pushed the fix upstream to the latest 1.x branch release (rev24 as of this writing)

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
  Does 1.x Work with jQuery 1.4.2? bocaj 1 88 6th September 19:25
Last Post: artvolk
  qTip, JQuery, Form Validator freetecno 1 97 26th August 01:52
Last Post: Craig
  Problem: qTip 1.0 (rev 54) + JQuery 1.4.2 -- no effect on show artvolk 10 559 25th August 04:15
Last Post: paul82
  [Solved] no path to jquery files petraski 2 96 20th August 01:31
Last Post: petraski
  [Solved] Latest revision does not work atDev 12 248 20th August 00:54
Last Post: atDev
  Still problem qTip 1.0 (rev 54) + JQuery 1.4.2 bitonio2 0 190 16th August 16:47
Last Post: bitonio2
  [Solved] Tooltip position within a jQuery UI Tab off in IE6 and IE7 spinlock 8 611 4th August 08:22
Last Post: Dante
  Update content dynamically with QTip and jQuery dhanya 1 246 29th July 07:07
Last Post: Craig
  [Solved] loadContent doesnt work in IE johnteh1980 1 184 3rd July 00:18
Last Post: johnteh1980
  [Solved] [Solved] Getting error in jquery.qtip-1.0.0-rc3.min.js MarjaR 2 1,430 30th June 07:41
Last Post: JMnet