My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1051: How to set "real" current month in eventsources?
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Jul 2011


Sign in to add a comment
 
Reported by andy...@gmail.com, Jul 26, 2011
Hi, in the Month view, I understand that when I view the calender, it will show the last few days of the previous month. Like for example:

June                      July
26 | 27 | 28 | 29 | 30 | 1 | 2 | 3 ...etc

I need to retrieve the "exact" month of the view, in this case July to my eventSources. I know that I can use 

.fullCalendar('getView');
.currView.visEnd.getMonth( );

But when the calendar first load, there is no way I can retrieve this variable and append to my eventSources:

eventSources: [{
            url: "/calendar/getEvents",
            type: "POST",
            data: {
                currMonth: visEndMonth
            },
            error: function( ) {
                alert("there was an error while fetching events!");
            }
        },

Any advise is greatly appreciated.
Jul 29, 2011
Project Member #1 althaus.it
http://arshaw.com/fullcalendar/docs/event_data/events_function/

You get the start and end timestamp of the current view. Just get the month from that value (needs a bit logic for the last days of prev month)?

Besides that please use Stackoverflow for general support as this here should mainly be a bug and feature tracker. :)
Status: Done
Sign in to add a comment

Powered by Google Project Hosting