My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 466: Multiple ajax calls when using lazyFetching as true/false (1.4.5)
3 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Nov 2010


Sign in to add a comment
 
Reported by bcar...@gmail.com, Apr 28, 2010


I had enabled lazyFetching option with true/false. then calendar sending
multiple ajax calls to get data. 

Here is my configuration

$('#calendar').fullCalendar({
header: {
	left: 'prev,next today',
	center: 'title',
	right: 'month,agendaWeek,agendaDay'
},
editable: false,        
disableDragging:true,                         
contentHeight: 500,	     
width: 800,             	   	
minTime:9,
maxTime:21,
lazyFetching:true,
defaultView:'agendaWeek',
loading: function(isLoading, view){
	if(isLoading){
		$('.fc-button-prev, .fc-button-next , .fc-button-month ,
.fc-button-agendaWeek , .fc-button-agendaDay').hide();
		$('.products').attr("disabled","disabled");
	}else{
		$('.fc-button-prev, .fc-button-next , .fc-button-month ,
.fc-button-agendaWeek , .fc-button-agendaDay').show();
		$('.products').removeAttr("disabled");
		}
}

});


function loadCal(storeId,contactId){

$('#calendar').fullCalendar( 'removeEvents');
$('#calendar').fullCalendar( 'addEventSource',
'getApptsByStore.action?storeId='+storeId+'&contactId='+contactId);

}

Apr 28, 2010
#1 bcar...@gmail.com
Sending them when i click on previous/next/todays/view types
466.JPG
155 KB   View   Download
Jun 14, 2010
Project Member #2 adamrs...@gmail.com
woah, doesnt sound good.

can you post an html file that i can execute and see the problem?
Oct 7, 2010
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Reproducing
Nov 21, 2010
Project Member #4 adamrs...@gmail.com
this was probably fixed in 1.4.7 or 1.4.8
Status: Done
Mar 4, 2011
#5 jorsa...@gmail.com
I think is not a bug of fullcalendar.
The problem is on the code.

I've explained one solution on: http://www.microteching.com/javascript/multiples-llamadas-ajax-en-el-fullcalendar

Explanation is in spanish, but I suppose there will be no problem to understand the code.

xD
Sign in to add a comment

Powered by Google Project Hosting