Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtip show onclick doesn't work
13th March, 10:59
Post: #1
qtip show onclick doesn't work
I'm trying to get the qtip to display when a link is clicked using

show: { when: { event: 'click' } } - this isn't working i.e. I click and nothing happens.

if I use

hide: { when: { event: 'click' } } - this will hide the tip on click but the tip will show on mouseover by default without me specifying.

I want the qtip to be shown and hidden when the link is clicked. I also want to be able to stop the href but only whe the user has javascript working. Normally I'd use return false; inside .click().

please help

thanks
Find all posts by this user
Quote this message in a reply
13th March, 15:23
Post: #2
qtip show onclick doesn't work
Hi scarps,

The problem your facing is that your assigning both the hide and show event as 'click' meaning, it will show then hide it immediately. It's a good point and I'll work on fixing this issue on the future. In the mean time, try changing one of them to mousedown:

JS Code
$('selector').qtip(
{
   show{ when: 'click' }
   hide{ when: 'mousedown' }
}):

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
13th March, 16:29
Post: #3
qtip show onclick doesn't work
Thanks Craig,
that helps but unfortunately on mouseup triggers the qtip to appear again!

S
Find all posts by this user
Quote this message in a reply
13th March, 23:08
Post: #4
qtip show onclick doesn't work
scarps Wrote:Thanks Craig,
that helps but unfortunately on mouseup triggers the qtip to appear again!

Sorry, I really should have tested the code without just assuming it worked. Try changing the show event to "mouseup" instead, that should fix your issue. If not, get back to me so I can look into this futher. I have a feeling this needs some code adjustment to implement correctly.

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
25th March, 17:09
Post: #5
qtip show onclick doesn't work
Hi Craig,

that won't work as the mouseUp is called on each 'click'.

Hope you resolve this soon.

cheers.
Find all posts by this user
Quote this message in a reply
7th April, 18:16
Post: #6
qtip show onclick doesn't work
This is now fixed as of Beta 4, which can have identical hide and show events.

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
  js only show admeis 1 14 Yesterday 18:00
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
  [Solved] Multi tips not 100% times work dmhorse 1 96 9th January 18:19
Last Post: Craig
  show qtip in a specified div or position myapweb 1 259 27th December 17:53
Last Post: Craig
  qtip not appearing on .show command josephkhoury 1 220 20th December 13:58
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] Show qTip when button pressed sulfurcode 1 281 1st December 11:15
Last Post: Craig
  [Solved] can't get background to work drm 2 349 21st October 20:33
Last Post: drm
  [Solved] simple test won't work? formaideale 3 365 11th October 12:48
Last Post: Craig



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