My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1132: No rendering by default
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2011


Sign in to add a comment
 
Reported by mathieu....@gmail.com, Sep 30, 2011
Hi,

I'm having a problems with my fullcalendar. I'm using the json methode to load events out of my database. I'm doing this via php.
My code works, but my events only render when I switch date...
for example: I enter my page, so events are renderd... when I change the month back or formard my events render...
why is that?
Mayby a thing you should know, the calendar is integraded in a tab system... (the default jquery UI methode)


This is my php code...
<?php
	include("config.php");
	
	$Events_Ophalen = mysql_query("SELECT * FROM agenda ORDER BY start DESC") or die(mysql_error());
	
	$events = array();
	
	while($row = mysql_fetch_assoc($Events_Ophalen)) {
   		$eventArray['id'] = $row['id'];
   		$eventArray['title'] =  $row['title'];
   		$eventArray['start'] = date('Y-m-d H:i',$row['start']);
		$eventArray['end'] = date('Y-m-d H:i',$row['end']);
		$eventArray['url'] = $row['url'];
		$eventArray['allDay'] = $row['allDay'];
		$eventArray['editable'] = $row['editable'];
  		$events[] = $eventArray;
	}

	header('Content-type: application/json');
	echo json_encode($events);

?>

Oct 2, 2011
Project Member #1 adamrs...@gmail.com
this is definitely a bug related to your app code and not a bug with fc. you can use stackoverflow to try to get an answer, but server-side-language-specific questions are discouraged because fullcalendar's primary focus is client-side js
Status: Done
Sign in to add a comment

Powered by Google Project Hosting