My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1135: Dynamic Event Array
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2011


Sign in to add a comment
 
Reported by sirisha....@gmail.com, Oct 2, 2011
$(document).ready(function() {
		alert('ready');

	

		var date = new Date();

		var d = date.getDate();

		var m = date.getMonth();

		var y = date.getFullYear();
		var s="{title: 'All Day Event',start: new Date(y, m, 1)},{title: 'All chi Event',start: new Date(y, m, 2)}";// here i will use jsonArray like 
		

		

		$('#calendar').fullCalendar({


			header: {

				left: 'prev,next today',

				center: 'title',

				right: 'month,agendaWeek,agendaDay'

			},

			editable: true,

			events: [
s]

		});

		

	});

In my case, I need to give dynamic events from my java class as shown above
events:[s];
I will pass this 's' from my java class as an jsonArray object.
But it is not displaying events on the calender.

Can you guys please respond me about this as I need to complete this task as soon as possible.

Oct 2, 2011
Project Member #1 adamrs...@gmail.com
sorry, can't help with individual project-specific problems. you'll have to figure it out on your own or use stackoverflow.

ps- read the docs. an event-object needs to be an object, not a string
look at:
http://arshaw.com/fullcalendar/docs/event_data/events_array/
Status: Done
Sign in to add a comment

Powered by Google Project Hosting