[jQuery] adding cluetip + ajax to an existing calendar.
Hi.
I've inherited an existing calendar which is a goog old fashioned
table of hyperlinks built in a .net user control.
My boss has asked me to makes some mods to it and I've added cluetip
with the following code:
jQuery(document).ready(function() {
jQuery('a.popup').cluetip({
cluetipClass: 'jtip',
arrows: true,
dropShadow: false,
hoverIntent: false
});
});
This works just lovely, but then I got carried away and added a
partial ajax refresh to the next/previous month links:
jQuery('a.ajaxRefresh').live('click', function(event){
jQuery("#divAjaxTrgt").load(this.href + " #dateSelector");
jQuery.getScript("/Javascript/jQuery_cluetip.js");
event.preventDefault();
});
This also works just lovely, however it kind of breaks the cluetip
code. e.g.
open the calendar - the cluetip works.
click next month - the calendar moves to the next month.
click previous month - the calendar updates, but the cluetip no longer
works.
Any help?