|
[Solved] qtip with live/delegate and multiple events
|
|
9th November, 22:07
(This post was last modified: 9th November 22:07 by Tangoman.)
Post: #1
|
|||
|
|||
|
[Solved] qtip with live/delegate and multiple events
Hi,
I originally wanted to be able to bind 2 different events so that qtips appeared with a delay on a mouseover, but instantly on a click. You helped me out there with use of events. I'm now trying to incorporate the .live or .delegate functions as my application is ajax intensive. I have a fiddle here: http://jsfiddle.net/wTnLL/1/ which demonstrates the problem. Basically - if you click on the word Test immediately after loading the page, nothing happens -it's only if you first hover until a qtip is presented, that the click functionality is bound. Is there a way to fix this? Thanks Tony |
|||
|
9th November, 22:15
Post: #2
|
|||
|
|||
|
RE: qtip with live/delegate and multiple events
Well since it isn't rendered until the first show delay, you'll need to bind it after: http://jsfiddle.net/wTnLL/2/
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
10th November, 09:30
Post: #3
|
|||
|
|||
|
RE: qtip with live/delegate and multiple events
Perfect - thanks!
|
|||
|
18th November, 16:00
Post: #4
|
|||
|
|||
|
RE: [Solved] qtip with live/delegate and multiple events
I'm trying to bind a qTip to an element that is added via ajax. I've seen the examples using live() or delegate() and the mouseover event but that doesn't seem like it would work on a mobile device. Is there another way of doing this that might work better?
|
|||
|
21st November, 17:54
Post: #5
|
|||
|
|||
|
RE: [Solved] qtip with live/delegate and multiple events
Well when you populate the new elements in the DOM just re-call the same qTip init function:
JS Code
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




