I'm using this to load events dynamically without a page refresh, but there's a bit too much time on the load so for better UX I thought we should add 'loading events' or similar but my attempts have been in vain so far.
function calendarAjax () {
$('#month_nav a').live('click', function() {
$('#events_container').animate({ opacity: "0" }, 200 ).load($(this).attr('href')+' #events_content' , function(){
$(this).animate({ opacity: "1" }, 600 );
});
return false;
})
};
Any assistance very much appreciated.
Thanks.