Mark Ellis
08-01-2012, 11:38 AM
Hi,
I want to access events from a separate file, rather than have to list them all in the main calendar htm file.
What code do I need to put in after "myCalendar.defineEvents([" in the code below ?
<script type="text/javascript">
var myCalendar = new JEC('myCalendarContainer');
myCalendar.defineEvents([
{
eventDate: 20120804,
eventDescription: 'Weymouth',
eventLink: 'http://www.dorsetdog.com/diary-of-dog-shows#wtg',
eventLinkTitle: 'A JavaScript Event Calendar'
},
{eventDate: 20120812,
eventDescription: 'Dorchester',
eventLink: 'http://www.dorsetdog.com/diary-of-dog-shows#wtg'
},
]);
myCalendar.showCalendar();
</script>
thanks
I want to access events from a separate file, rather than have to list them all in the main calendar htm file.
What code do I need to put in after "myCalendar.defineEvents([" in the code below ?
<script type="text/javascript">
var myCalendar = new JEC('myCalendarContainer');
myCalendar.defineEvents([
{
eventDate: 20120804,
eventDescription: 'Weymouth',
eventLink: 'http://www.dorsetdog.com/diary-of-dog-shows#wtg',
eventLinkTitle: 'A JavaScript Event Calendar'
},
{eventDate: 20120812,
eventDescription: 'Dorchester',
eventLink: 'http://www.dorsetdog.com/diary-of-dog-shows#wtg'
},
]);
myCalendar.showCalendar();
</script>
thanks