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
  [Solved] Tip mimic property doesn't change with flip viewport position.method ikhan 2 24 Yesterday 04:58
Last Post: ikhan
  [Solved] qtip showing content from db doesn't change when content in db changes. vtoepel 2 146 23rd April 16:02
Last Post: vtoepel
  the plugin do not work correctly with jquery 1.7? vic906 1 155 12th April 22:09
Last Post: Craig
  [Solved] Cannot get qtip to work on Ruby on Rails kakubei 5 403 3rd March 16:40
Last Post: Craig
  will qtip work in this situation seeker7805 1 248 2nd March 00:28
Last Post: Craig
  js only show admeis 1 279 6th February 18:00
Last Post: Craig
  [Solved] Can't install or make it work - guide for newbie & donator marz 7 630 25th January 15:52
Last Post: Craig
  [Solved] Multi tips not 100% times work dmhorse 1 277 9th January 18:19
Last Post: Craig
  show qtip in a specified div or position myapweb 1 593 27th December 17:53
Last Post: Craig
  qtip not appearing on .show command josephkhoury 1 448 20th December 13:58
Last Post: Craig



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