| Issue 437: | Events from servlet not displayed on calendar | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Apr 6, 2010
Sorry my problem, i used the normal bracket instead of the square bracket in JSON response
Apr 26, 2010
(No comment was entered for this change.)
Status:
Done
Jan 17, 2016
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 |