My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 536: Problem. Don´t display events in the month view for fullcalendar
3 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2010


Sign in to add a comment
 
Reported by fabis8526@gmail.com, Jun 30, 2010
Hi!!

I try to show the events of the month of an agent to an agenda, for which I create a jsonarray that contains all of these events that are extracted from a database

The arrangement that I get is as follows which is created with the library json.org (jsonarray) for java:

[[{"id":3,"title":"prueba","start":"2010-06-03","allday":false,"end":"2010-06-04"},
{"id":1,"title":"prueba","start":"2010-06-02","allday":false,"end":"2010-06-03"},
{"id":2,"title":"prueba2","start":"2010-06-01","allday":false,"end":"2010-06-04"}]]

To send the json to realize what fullcalendar Through of an action I am using struts2 for create object jsonarray:

<script type="text/javascript">
$(document).ready(function() {
	
	var date = new Date();
	var d = date.getDate();
	var m = date.getMonth();
	var y = date.getFullYear();
	
	$('#calendar').fullCalendar({
		theme: true,
		header: {
			left: 'anterior,proximo,hoy',
			center: 'title',
			right: 'mes,agendaSemanal,agendaDia'
		},
		editable: false,
		onClick: function(fecha,view) {
			$('#calendar').fullCalendar('changeView', 'agendaDay');
			$('#calendar').fullCalendar('gotoDate', fecha);
	    },
	   events:'doCitas.action'
	 });

</script>

Also i tried use servlets but i can't display events in the fullcalendar.

somebody help me with this. 


the code is fine? if not can you show me a practical example

Thanks
Jul 5, 2010
Project Member #1 adamrs...@gmail.com
not really sure, but could it be that your supposed to be writing "allDay" rather than "allday" ?
Jul 6, 2010
#2 fabis8526@gmail.com
I tried with your supposed, i changed "allday" for "allDay" but i can´t display events in the fullcalendar 

Other idea????

Thanks
Jul 25, 2010
#3 jackey....@gmail.com
I am having the same issue with struts 2. Has it been resolved? thanks.
Jul 26, 2010
#4 cityspar...@gmail.com
I have the Same problem in struts 2.  I put a breakpoint in my action and the URL isn't being invoked. Where as if I put the exact url in my browser, my action is being invoked.

Could it be that FullCalendar is not interpreting a string ending with .action as a URL and is never invoking the link?

This is likely something simple to fix.

Keep up the great work on this very nice plugin!

Thanks
Aug 3, 2010
Project Member #5 adamrs...@gmail.com
there is no problem with the .action url.

please use firebug to inspect the ajax request that is being sent out. this should lead you to the cause of the problem
Aug 4, 2010
#6 cityspar...@gmail.com
One major problem I had was that the Events: <json URL>, the URL was being escaped automatically (I need to pass an extra parameter), so my url was something like: /myurl.action?param1=val1&param2=val2.  The & character was being escaped to &amp; so my action was never being called.

By solving this, full calendar will call the url.


Aug 25, 2010
Project Member #7 adamrs...@gmail.com
it is not fullcalendar's responsibility to make sure your url's are correct. fullcalendar will simply insert querystring parameters into a valid url.

this is a problem with the way you are using fullcalendar, not fullcalendar itself. good luck

(hint: internally, fullcalendar is using jquery's $.action function. please consult the docs for that)
Status: Done
Sep 2, 2010
#8 david.on...@gmail.com
i have the same problem i got the JSON object with the same format and the calendar doesnt display anything.. has someone resolve this??
Aug 17, 2015
#9 santoshs...@gmail.com
$(document).ready(function() {
        $('#calendar').fullCalendar({
            theme: true,
            editable: false,
            events: "/CalendarProject/CalendarJsonServlet"
        });
 
    });
1
2
</script>
<div id="calendar"></div>

 
events: "/CalendarProject/CalendarJsonServlet"---> i am getting confusing here which path i have to write i am using eclipse IDE can any one help me>
Sign in to add a comment

Powered by Google Project Hosting