My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 437: Events from servlet not displayed on calendar
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Apr 2010


Sign in to add a comment
 
Reported by anoop.na...@gmail.com, Apr 5, 2010
Hello all, I am trying out fullcalendar, 
I have a servlet which returns the events.
An html outside the app server which call the servlet.
The servlet returns the events and on firebug i see correctly the results.
The problem is that the events are not displayed on the calendar.

Servlet
map.put("id", "87612");
map.put("title", "ACQUA DI..");
map.put("start", "2010-04-07");
map.put("allDay", false);
JSONObject jsonObject = JSONObject.fromObject( map );
response.setHeader("Content-Type", "application/json");
response.setCharacterEncoding("UTF-8");
response.getWriter().write("("+JSONUtils.stripQuotes(jsonObject.toString())+")");

HTML
$(document).ready(function() 
{
	$('#calendar').fullCalendar({
	header: {
		left: 'prev,next today',
		center: 'title',
		right: 'month,basicWeek,basicDay'
		},
	editable: true,
	defaultView: 'basicWeek',
	events:
"http://localhost:8080/caltest/getCalEvents.view?inCode=1023&callback=?
	});
		
});

Cant figure out what wrong I am doing.
Waiting for your guidance
Thanks in advance.

Apr 5, 2010
#1 anoop.na...@gmail.com
Missed the version, I used the latest version 1.4.5
Apr 6, 2010
#2 anoop.na...@gmail.com
Sorry my problem, i used the normal bracket instead of the square bracket in JSON
response
Apr 26, 2010
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Jan 17, 2016
#4 lakhani....@gmail.com
Hey! Anoop. Plz help me to work with this fullcalendar plugin. Can u plz send me the whole code of servlet.
Sign in to add a comment

Powered by Google Project Hosting