Wednesday 15 June 2011

How do I get data from Mongodb to display in Fullcalendar while using meteor.js -


I'm trying to use Fullcalendar with Metcalor.js It seems that the full calendar is JSON You can use. Like this:

  $ ('# calendar'). FullCalendar ({event: [{title: 'event1', start: '2013-06-01'}, {title: 'event2', start: '2013-06-05', '2013-06-07 '}, {Title:' event3 ', start:' 2013-06-09 12:30:00 ', all day: Show wrong // time}}   

});

I am trying to store this data in a Mongodb and then output data to the entire calendar.

I'm not sure how to do this and would appreciate any help.

Thanks

Hi rjsandman fullcalendar ajax call and search stack for JSON calls Try, load the event with tecnologys and refer to fullcalendar documentation I'm sure you can understand it.

To output your data based on your server-side technology, you must send your client side back with your already formatted event such as a string or well-formed XML.

XML Format:

  & lt ;? Xml version = "1.0" encoding =  

This is an example of how you can send events back to: "UTF-8" & gt; & Lt; Root & gt; & Lt; Events & gt; & Lt; Event Title = "Merciful" Start = "20-03-2014 10:30:00" End = "20-03-2014 12:30:00" Everything = False> & Lt; / Event & gt; And so on ... & lt; / Events & gt; & Lt; / Root & gt;

JSON format:

  [["title": "MerryStille", "Start": "20-03-2014 10:30:00" , "End": "20-03-2014 12:30:00" "all days": wrong}, {"title": "MerrySylll", "start": "20-03-2014 10:30:00" , "End": "20-03-2014 12:30:00" All days ": false}, {" title ":" MerrySylll "," Start ":" 20-03-2014 10:30:00 ", "End": "20-03-2014 12:30:00" "All days": false}]   

Good luck

No comments:

Post a Comment