Hi guys, I am using the jQuery full calendar plugin.
I wanted to save events and get through LocalStorage HTML5.
And I managed to store the part using JSON and got the element from the localstorage element using JSON Parse.
nw, when I loop through a JSON value (more than 50 values) and assign the same event object to its broken match.
Here is my loop (Sample)
var vEvents = '['; for(i=1; i<=1; i++) { vEvents += '{ "title": "new appointment", "start": "12-MAR-2012 14:00" }'; } vEvents += ']';
and this is assignin like this
events: vEvents,
Here is the o / p console log: -
[{ "title": "new appointment", "start": "12-MAR-2012 14:00" }]
Fullcalender does not extract the correct o / p values, whereas if I set it as shown below (static), it worked correctly.
var vEvents = [{ "title": "new appointment", "start": "12-MAR-2012 14:00" }];
Please help me in more detail.
Harry source share