|
[Solved] close by left clicking outside tip
|
|
29th December, 10:04
Post: #1
|
|||
|
|||
|
[Solved] close by left clicking outside tip
So, I am making a right click menu with qtip2 and I want it to be hidden when you click anywhere outside the tip itself. I assume this needs to be done with the api and a special function but I cant really figure out the best way of doing it. Some help please? =)
|
|||
|
29th December, 17:48
Post: #2
|
|||
|
|||
|
RE: close by left clicking outside tip
Xtracted, sounds like you need a combination of right-click detection (http://craigsworks.com/projects/qtip2/tu...ightclick) and the unfocus event:
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
30th December, 08:41
(This post was last modified: 30th December 08:42 by Xtracted.)
Post: #3
|
|||
|
|||
|
RE: close by left clicking outside tip
Perfect, the hide.unfocus was just what I was looking for! Thank you!
I am using the following to prevent the right click menu from appearing: JS Code
Any comments on using that vs your: JS Code
(Except that your code is much prettier=) ? |
|||
|
30th December, 19:39
Post: #4
|
|||
|
|||
|
RE: [Solved] close by left clicking outside tip
Well return false; actually calls preventDefault(); Check-out this article for more information: http://fuelyourcoding.com/jquery-events-...urn-false/
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




