I use the json event properties of the full calendar to call a php script which gives a JSON string in the string Required properties and some extra such as 'description'. Ducanation says that you can add properties but there is no information on how to do it.
I was seen whether this eventRender is automatically added by seeing 'event.description' (for example) in the callback. It was 'undefined'
If someone has any experience with this, then I give an example of how to do it.
David
When you create a new full calendar event, With no additional properties can be included. The full calendar will ignore any additional properties, so you have to type some scripts and display them. For example, adding an event location or description will be done as follows:
var Event = {ID: '123', Title: 'New Event', URL: 'http: // thearena. Com / ', Start: "Sun, 18 July 2010 13:00:00 EST", "Sun, 18 July 2010 17:00:00 EST", All day: Wrong, Location:' Arena ', Description: Big Event ', Editable: Truth}; $ ('.fc'). FullCalendar ('renderEvent', event, true) // Add event to full calendar // Add script here to post event back to your server Then make sure that when If you initialize calendar scripts, then you have a way to display information for this extra event. Here is an example with an event click function showing data in a warning window (or a facebook soundbox - commented). And if any URL is present then it will also open in a new tab / window.
$ ('.fc'). FullCalendar ({eventClick: function (calEvent, jsEvent, view) {Var event = 'Event:' + calEvent.title + '
' + 'Location:' + calEvent.location + '& lt; br '+' Start Time: '+ calEvent.start +'
'End Time:' + calEvent.end + '
' + 'Description:' + CalEvent.description; Warning (event); // jQuery.facebox (event); // This HTML will open a facebox popup window if (calEvent.url) {window.open (calEvent.url); return false;}}) ;
Comments
Post a Comment