| Issue 133: | "events: string/array" implicitly a jsonarray? | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. assigning json_calevents to "events:" ... events: json_calevents , ... It throws an permission denied error in the jquery.js on line 3517 xhr.open(type, s.url, s.async); I've converted an array to json using the json2.js http://json.org/js.html var json_calevents = JSON.stringify(calevents_array); thats the content of the jsontext variable: [{ id:1,title: 'Event',start: 'Mon Oct 5 00:00:00 UTC+0200 2009',allDay: true}]
Oct 31, 2009
right, if you are give it a string, it thinks its a URL (this the permission denied error). if you have the event data in the JS, just give fullcalendar the array (don't encode it to json)
Status:
Done
|
|
| ► Sign in to add a comment |
I've solved the problem to do it without json by just pushing the calevents into an array and assigning it to events: calevents_array.push({ id: list_ID, title: list_title, start: date, allDay: true }); events: calevents_array,