Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Does 1.x Work with jQuery 1.4.2?
6th September, 03:45 (This post was last modified: 6th September 04:09 by bocaj.)
Post: #1
[Solved] Does 1.x Work with jQuery 1.4.2?
Hi,
I am a Drupal developer and I created a project for Drupal users to use the qTip library! Drupal is currently in the process of coming out with a new version, currently in alpha release, which will use jQuery 1.4.2. I have my project working great with the qTip library on Drupal's current version, which uses jQuery 1.2.6 and (optionally) 1.3.2. In order for the functionality to be available when the new Drupal version is released, I have been working on porting the project over to Drupal's new version.

I am receiving an error in Firebug ($(this).data("qtip") is null) on line 138 of the uncompressed library code. Does this have to do with using jQuery 1.4.2?

I was looking into using the 2.x version of qTip even though it is still in development, but received numerous errors regarding the JS file that I set (I can't remember the exact errors, I can get them if that would help). Being in development, I didn't see or expect any documentation, but it appears like the objects and such (pardon me if I am not using the correct terminology, I am not real familiar with jQuery...especially the terminology) are different in 2.x vs. 1.x, is that correct?

This was a long post to really ask:
- Is qTip 1.0.0-rc3 compatible with jQuery 1.4.2?
- Unfair question I know, but do you have an idea of when qTip 2.x will be released and when there will be API documentation?

Really love what you have done with this project Craig! Thanks so much for your continued work on this project.

Drupal has always lacked a good tooltip module (in my opinion). I am hoping that with our combined efforts that qTip will flourish on Drupal (as well as elsewhere!)

I look forward to a response to these above questions! Thanks in advance!

Jacob
http://drupal.org/project/qtip
I found the documentation for 2.x (sorry for not poking around more before posting). I will have to look into this more in getting things setup for qTip 2.

Also, I tried the converter, but I could never get it to work. The "waiting" spinner was constantly there, no matter how long I let it sit there (I waited about 5 minutes at one point). Don't know if I'm maybe doing something wrong?

Thanks,
Jacob
Find all posts by this user
Quote this message in a reply
6th September, 09:25 (This post was last modified: 6th September 09:25 by artvolk.)
Post: #2
RE: Does 1.x Work with jQuery 1.4.2?
We used latest version from GitHub (http://github.com/Craga89/qTip) and documentation from here: http://craigsworks.com/projects/qtip_new/ for 1.4.2. Fixed versions of 1.0 that you can found here in the forum, have problems with 1.4.2 (no show effect for me, more details here: http://craigsworks.com/projects/forums/t...t-on-show)
Find all posts by this user
Quote this message in a reply
10th September, 11:15 (This post was last modified: 10th September 11:15 by chrisf.)
Post: #3
RE: Does 1.x Work with jQuery 1.4.2?
I am using qtip 1.0.0 rc3 and have updated to jQuery 1.4.2.

Due to a breaking change in jQuery 1.4.2 (which by the looks of it will be corrected in 1.4.3 - see links below) the jtip code raises an exception on line 138.

As far as I can tell the problem is fixable by editing the code as shown below (the code starts at line 133 in jquery.qtip-1.0.0.-rc3.js

PHP Code:
// Check if element already has qTip data assigned
            
if ($(this).data('qtip') !== null// code used to read if( typeof $(this).data('qtip') == 'object' )
            
{
               
// Set new current interface id
               
if(typeof $(this).attr('qtip') === 'undefined')
                  $(
this).data('qtip').current = $(this).data('qtip').interfaces.length;

               
// Push new API interface onto interfaces array
               
$(this).data('qtip').interfaces.push(obj);
            } 


Links about breaking change: -
http://forum.jquery.com/topic/jquery-1-4...-behaviour
http://dev.jquery.com/ticket/6166

As far as I can tell changing line
Find all posts by this user
Quote this message in a reply
13th September, 15:09 (This post was last modified: 13th September 15:10 by DarkNSF.)
Post: #4
RE: Does 1.x Work with jQuery 1.4.2?
I minified the solution above if anyone needs it.


http://yui.2clics.net/upload/418406f699c...rc3-min.js

http://www.thomdowning.com
Visit this user's website Find all posts by this user
Quote this message in a reply
14th September, 13:58
Post: #5
RE: Does 1.x Work with jQuery 1.4.2?
Thanks DarkNSF! I had to use jquery 1.4.2 on my page since I am using the nivo slider in addition to qtip but with 1.3.2 my qtip broke! Now they're both working together fine. The only thing is that the qtip pointer is not showing up in IE 8. Is there a fix for this?

(13th September 15:09)DarkNSF Wrote:  I minified the solution above if anyone needs it.


http://yui.2clics.net/upload/418406f699c...rc3-min.js
Find all posts by this user
Quote this message in a reply
22nd September, 15:08
Post: #6
RE: Does 1.x Work with jQuery 1.4.2?
Thanks for starting this thread. I was frustrated to find that qtip 1.0.0-rc3 does not work at all with jQuery 1.4.*.
Find all posts by this user
Quote this message in a reply
29th September, 17:24
Post: #7
RE: Does 1.x Work with jQuery 1.4.2?
In fairness this is actually a jQuery bug with how the suddenly changed how .data() works i.e. what it returns in response to certain arguments Wink

Although it only effects 1.4.2, not 1.4.1 or the development branch

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 October, 08:21
Post: #8
Lightbulb RE: Does 1.x Work with jQuery 1.4.2?
Hi there,

Just changed the 55 revision with the above changes and they work great.. on anchors.... But when using button type it does not work. Same error.
Tweaked the expression on row 134 a little bit and now it looks like this:

JS Code
if (($(this).data('qtip') !== null) && (typeof $(this).data('qtip') !== 'undefined'))


Who knows what else we can expect with the 1.4.2. JQ?

Cheers!
Sjoerd
Find all posts by this user
Quote this message in a reply
9th November, 21:45
Post: #9
RE: Does 1.x Work with jQuery 1.4.2?
They just release jQ 1.4.3 which fixes this:

http://blog.jquery.com/2010/10/16/jquery-143-released/

All workie workie now. Big Grin
Find all posts by this user
Quote this message in a reply
26th February, 16:29
Post: #10
RE: Does 1.x Work with jQuery 1.4.2?
It needs an alert on the plug-in page about issues with jQuery 1.4.2. I spent too much time re-writing my code and trying to debug it.
Find all posts by this user
Quote this message in a reply
1st March, 15:28
Post: #11
RE: Does 1.x Work with jQuery 1.4.2?
The post is stickied zzz, a quick search on the forums will bring it up quite promptly. 1.0 is actually dead code now, as qTip2 is out soon, so no udpates will be made to the documentation.

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 64 29th January 16:35
Last Post: Craig
  [Solved] Can't install or make it work - guide for newbie & donator marz 7 253 25th January 15:52
Last Post: Craig
  Tooltips not loading jQuery or other js files from parent document crodesign 2 144 13th January 22:19
Last Post: crodesign
  [Solved] Multi tips not 100% times work dmhorse 1 96 9th January 18:19
Last Post: Craig
  qtip with jquery mobile tap event finedesignz 1 179 4th January 21:18
Last Post: Craig
  ajax.once:false option not work in IE sse.michael 2 311 9th December 01:44
Last Post: sse.michael
  [Solved] qtip does not work with wordpress version 3.1.4 zakirstage 8 480 2nd December 12:34
Last Post: zakirstage
  [Solved] can't get background to work drm 2 349 21st October 20:33
Last Post: drm
  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,210 18th October 07:22
Last Post: jokepondy



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