Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
show/hide "advanced" options
17th August, 07:09
Post: #1
show/hide "advanced" options
I'm wondering if there is a way to implement a "hoverintent" type show/hide. The delay on show does not seem to work like a hoverintent. Currently, with show delay set to 1000, if I hover briefly over the target (<1000ms) and then move off, the tip shows anyway.

What I really want is for the tooltip to not appear if the user does not leave the mouse over the target for a specific period of time, but I also need the tip to persist until the close button is pressed (hide: false) so I cannot use the standard hide functionality.

I think I could accomplish something close to what I want with multiple close conditions, i.e. once shown, if the mouse is not over either the target or the tip then it should close automatically.

Bill
Find all posts by this user
Quote this message in a reply
17th August, 12:35
Post: #2
show/hide "advanced" options
wcmanes, could you upgrade to the latest branch revision and see if the delay now acts as hoverintent? RC3 did indeed have a delay bug which was resolved (hopefully) in the subsequent branch revisions.

You can achieve the hide functionality you want by as yo usaid, using "hide: false" and implementing maybe a close title button (built-in) or use the API to setup an event on a seperate element to hide the qTip.

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
17th August, 17:13 (This post was last modified: 17th August 17:17 by klb5770.)
Post: #3
show/hide "advanced" options
Thanks Craig. I'll give the new release a try and let you know. It's for my "other" job so I'll have to do it later.

BTW, love your work. qTip is light-years ahead of all other jquery tooltip plugins.

Bill

(Just noticed your in Newcastle. Sorry about those Toons Sad What a shambles.)
Find all posts by this user
Quote this message in a reply
18th August, 02:19
Post: #4
show/hide "advanced" options
I don't see any difference with this version. If I simply pass the mouse over the target, the tip is shown.

Here is my setup:
$("#ia_$id").qtip(
{ content: {
text: "$tiptxt",
title: {
text: 'Agreement Details',
button: '<img src="images/btn_close.gif" alt="Close" />' }
},
position: { target: 'mouse',
adjust: { y:10, screen: true, mouse: false },
corner: { target: 'bottomMiddle', tooltip: 'topMiddle' }},
show: { delay: 1000, solo: true },
hide: false,
style: 'iatip'
});


Bill
Find all posts by this user
Quote this message in a reply
18th August, 13:54
Post: #5
show/hide "advanced" options
wcmanes, I've just updated the branch to include support for "hide:false" whilst using show delays. If no hide event is specified, the show delay is reset by default on mouseout of the target.

Give it a try and see what you think.

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
19th August, 02:24
Post: #6
show/hide "advanced" options
Hi Craig,

Close but not quite. The 1st invocation works fine. I can pass mouse over the target, but the tip does not show until I hover for 1 sec. However, after the tip is displayed the 1st time, the behavior goes back to what it was before. If mouse passes over the element, the tip is shown.

Bill
Find all posts by this user
Quote this message in a reply
19th August, 13:48
Post: #7
show/hide "advanced" options
wcmanes, just updated the branch again to support it universally. Hope this one nails it!

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
19th August, 17:05 (This post was last modified: 20th August 03:09 by klb5770.)
Post: #8
show/hide "advanced" options
Hi Craig,

The show/hide for delayed elements seems to work great. Unfortunately I'm seeing a new problem I never saw before. For "normal" qtips using title attribute, I'm seeing both the standard browser title tip and the qtip at the same time. This link will show you an example:

https://ishare.ucr.edu/xythoswfs/webui/_xy-1778534_1

There is also a problem that in IE the tips with hide:false close as soon as mouse moves off the target. Works correctly in FF.

The standard title tip only shows the 1st time I hover over an element. After the 1st time, only the qTip shows. In case it helps, here is the call I'm using to generate these tips:

$('a[href][title],:input[type=button][title],:input[type=submit][title]').qtip({
content: {text: false}, // use title attribute
position: { corner: { target: 'bottomLeft', tooltip: 'topLeft' }},
show: { delay: 2000 },
style: 'moutip'
});


Really sorry to keep bothering you about this.

Bill
Find all posts by this user
Quote this message in a reply
20th August, 13:11
Post: #9
show/hide "advanced" options
wcmanes, could you update to the latest branch revision and see if the default browser tooltip bug is still occuring please? Looking into the mouseout bug in IE now.

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
27th August, 04:56
Post: #10
show/hide "advanced" options
Tried the install the latest version (151), but it looks like I need some instructions on the new file structure. Which files to I need to use? Any specific order on the js includes?

Thanks
Bill
Find all posts by this user
Quote this message in a reply
27th August, 12:13
Post: #11
show/hide "advanced" options
Simply include the base plugin file: jquery.qtip.js, and then any optional components you want such as borders, tips below the library file.

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
7th September, 05:02
Post: #12
show/hide "advanced" options
Hi Craig,

I finally had a chance to try the latest version. On the first mouse pass over the target, the tip shows whether I hover or not. Any subsequent passes work fine (until a page reload). If I hover, the tip shows. If I pass over it does not. This is true in both FF and IE.

The IE problem with standard titles showing is no longer occurring.

Bill
Find all posts by this user
Quote this message in a reply
7th September, 13:17
Post: #13
show/hide "advanced" options
Thanks wcmanes, I'll look into the first hover bug and post once I have found and pushed the solution upstream

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
14th October, 23:42
Post: #14
show/hide "advanced" options
Hi Craig,

I know you are very busy, but was wondering if you have had a chance to look at my issue with the first tooltip pop not using hover-intent timeout. I'm getting close to planning production release of app that is using this and I hoping for a stable baseline.

I have tried to use the latest trunk with the css, but was not able to figure out how it works (didn't really spend much time). Do you have anything written up that explains what to do to switch from using style elements to css?


BTW, I would like to apologize for some of the crabby people on this board that seem to think you should dedicate all your time to their problems, free of charge of course...
I appreciate all the time you have spent in making this great free software. Wish everyone would give you the respect you deserve.

Thanks,
Bill
Find all posts by this user
Quote this message in a reply
20th October, 00:37
Post: #15
show/hide "advanced" options
Hi Bill,

At the moment I'm not actively working on qTip until December time. Simply don't have time at the moment sorry. However, checkout the branch revisions before about 160~ and the issue above should well be fixed.

And thank you for your appreciation. It's hard to get time to do things like this at the moment, so a little appreciation really goes a long way.

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
  Multiple events for show/hide? garbledygook 2 1,529 16th November 19:38
Last Post: Craig
  Slide Effect on Show Hide ahofferth 1 1,091 11th July 15:56
Last Post: Craig
  Avoid to hide while hover the tip palaueb 4 1,838 9th December 15:01
Last Post: ralphholzmann



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