|
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 |
|||
|
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
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
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 |
|||
|
13th March, 23:08
Post: #4
|
|||
|
|||
qtip show onclick doesn't work
scarps Wrote:Thanks Craig, 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 |
|||
|
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. |
|||
|
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 |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





