sto riducendo al minimo lo script di caricamento per fare dei test, dalla documentazione ufficiale ho adopetaro questo
codice:
$('#calendar').fullCalendar({
events: function(start, end, callback) {
$.ajax({
url: 'test.php',
dataType: 'xml',
data: {
// our hypothetical feed requires UNIX timestamps
start: Math.round(start.getTime() / 1000),
end: Math.round(end.getTime() / 1000)
},
success: function(doc) {
var events = [];
$(doc).find('event').each(function() {
events.push({
title: $(this).attr('title'),
start: $(this).attr('start') // will be parsed
});
});
callback(events);
}
});
}
});
callback(events); <--- dovrebbe far quel che chiedo
solo che.... così impostato non mi carica i dati da xml
l'xml è così compost
codice:
<events>
<event title="event title" start="2012-11-15T10:30:00" allDay="false">
<event title="event 2" start="2012-11-18T10:30:00" allDay="false">
</events>