events (as a json feed) ======================= A URL of a JSON feed that the calendar will fetch [Event Objects](Event_Object) from. FullCalendar will visit the URL whenever it needs new event data. This happens when the user clicks prev/next or changes views. FullCalendar will determine the date-range it needs events for and will pass that information along in GET parameters. The GET parameter names will be determined by the [startParam]() and [endParam]() options. (`"start"` and `"end"` by default). The value of the parameters will always be UNIX timestamps (seconds since 1970). Consider the following script: $('#calendar').fullCalendar({ events: '/myfeed.php' }); Here is a URL that FullCalendar might visit: `/myfeed.php?start=1262332800&end=1265011200&_=1263178646` The `_` parameter is automatically inserted to prevent the browser from caching the result ([more below](#caching)). If you need to access a feed that is in a different domain, you can use JSONP with a `?` in your URL (see the JSONP discussion in [$.ajax](http://api.jquery.com/jQuery.ajax/)). Extended Form ------------- Since version 1.5, you are able to specify [Event Source options](Event_Source_Object#options). This often comes in handy when you are using the [eventSources]() option to specify multiple event sources and you want certain options to only apply to certain sources. However, to do this, you must write things a little differently: $('#calendar').fullCalendar({ eventSources: [ // your event source { url: '/myfeed.php', // use the `url` property color: 'yellow', // an option! textColor: 'black' // an option! } // any other sources... ] }); A list of general Event Source options can be found [here](Event_Source_Object#options). However, there are additional options that apply specifically to JSON feeds:
| startParam | Sets the [startParam]() option, but only for this source. |
|---|---|
| endParam | Sets the [endParam]() option, but only for this source. |