Ciao Andrea
e GRAZIE per la risposta!!!
In realtà con il web server posso fare quel che voglio perchè quel che sto facendo è una applicazione in locale per cui il web server verrà configurato con le esigenze del caso.
temporizzare chiamate AJAX, come da te suggerito mi potrebbe andar bene attualmente il locale per un test di sviluppo.
io faccio chiamate JSON attualmente, di seguito il codice
ho provato a chiamare con AJAX ma senza successo, come posso implementare questa chiamata?codice:<script type='text/javascript'> $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); $('#calendar').fullCalendar({ lazyFetching: false, header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay', }, defaultView: 'agendaWeek', eventClick: function(event) { if (event.url) { $.fancybox({ 'transitionIn': 'none', 'transitionOut': 'none', 'width': '85%', 'height': '85%', 'type': 'iframe', 'href': event.url, 'onClosed': function() { parent.location.reload(true); } }); return false; } }, selectable: true, selectHelper: true, select: function(start, end, allDay) { var title = prompt('Inserire evento:'); if (title) { calendar.fullCalendar('renderEvent', { title: title, start: start, end: end, allDay: allDay }, true // make the event "stick" ); } calendar.fullCalendar('unselect'); }, editable: true, //QUESTA LA CHIAMATA eventSources: [ { url: 'calendario-json.php', // use the `url` property color: 'green', // an option! textColor: 'black' // an option! } ], //QUESTA LA CHIAMATA eventDrop: function(event, delta) { /* alert(event.title + ' è stato spostato di ' + delta + ' giorni ' + '(il database è stato regolarmente)'); */ }, loading: function(bool) { if (bool) $('#loading').show(); else $('#loading').hide(); } }); }); </script>
grazie ANCORA!!!

Rispondi quotando