[jQuery] Cluetip + UI.datepicker + show events onmouseover
Hello,
I am using cluetip 0.9.8 and UI.datepicker (http://marcgrabanski.com/
code/ui-datepicker) from Mark Grabanski.
The UI.datepicker displays a calendar, and I expect cluetip to show on
the event onmouseover the status of a day.
Here is the code I use :
$(document).ready(function() {
// when mouseover on a day
$('td.datepicker_daysCell a').mouseover(function(){
// add cluetip class
$('td.datepicker_daysCell a').addClass('cluetip');
// add href and rel attributes
$(this).attr({
href: "testAJAX.txt",
rel: "testAJAX.txt"
});
// load cluetip
$('a.cluetip').cluetip({
cluetipClass: 'complet',
dropShadow: false,
sticky: false,
ajaxCache: false,
arrows: false,
onShow: function(ct, c){
$('a.test').click(function(){
var Plop = $(this).text();
alert(Plop);
});
}
});
});
});
The problem occures on firefox, because we need to mouseover twive on
a day to make it working.
On IE, the first mouseover event is working fine and show the content
of testAjax.txt.
Any idea of this trouble ?
Sorry if the question has already been asked.
Fred