jQuery Cluetip not activated until after hover or click event
Posted
by kenny99
on Stack Overflow
See other posts from Stack Overflow
or by kenny99
Published on 2010-04-19T14:12:25Z
Indexed on
2010/04/19
14:13 UTC
Read the original article
Hit count: 309
I'm not sure what is causing this, but I am using cluetip and binding it to a live event (either click or mouseenter), but in each situation the cluetip isn't firing until after one click or hover event. I am using the live event for ajax loaded content, but I'm also having this issue with non-Ajax loaded content. I'm not sure why this is happening - can anyone see where I might be going wrong? Many thanks.
$("a.jTip").live("click", function(){
$('a.jTip').cluetip({
attribute: 'href',
cluetipClass: 'jtip',
arrows: true,
activation: 'click',
ajaxCache: false,
dropShadow: true,
sticky: true,
mouseOutClose: false,
closePosition: 'title'
})
return false;
});
© Stack Overflow or respective owner