I use this calendar http://w3widgets.com/responsive-calendar/
I need to display some events after the page loaded so i add with ajax and the 'edit' function.
the load function looks like this:
function loadcalendar(){
$('#calendar').responsiveCalendar('clearAll');
$.ajax({
type:'POST',
url:'getcalendar.php',
data: {},
success: function (response)
{
$('#calendar').responsiveCalendar('edit', response);
}
});
the php file returns something like:
{\"2014-04-30\": {\"number\": 1, \"badgeClass\": \"badge-warning\"}}
the problem ist, that it properly clears all events so the id should be correct
the 'edit' function seems also be working fine cause it display correctly when i input the event directly (instead of the variable)