Issue 357: Add a navClick Function
Status:  Done
Owner: ----
Closed:  Feb 2010
Reported by email.sc...@gmail.com, Feb 21, 2010
I need a function, that return me the month, day and year if I click on the
next or previous buttons in the title. I want to use this event to load the
next events for the choosen month from the database in to the calendar.
Feb 25, 2010
#1 DonaldWB...@gmail.com
the viewDisplay function serves this purpose. Every time the display changes this
function will fire. 

From with in the viewDisplay() function call getDate() and then do work based on the
"current date" it returns after display change.
Note: When changing views, the calendar moves the "Current Date" by the time period
seleted. IE if your Current Date is Mar 6, 2010, and you move forward a month,
getDate will return April 6th. the same applies for moving weeks fwd/bkwd.

Don
Feb 25, 2010
#2 DonaldWB...@gmail.com
After a few more seconds of thought on how my code behaved, I will add this:

This event actually would be useful, and should fire somewhere between the code that
figures out what the next date range should be and eventRender(s).

If you do it as I suggested above requires the calendar to render, the events to be
AJAX'd, and then the calendar to be re-rendered with the new events. To many renderings.

Don


Feb 26, 2010
Project Member #3 adamrs...@gmail.com
email.schiller,

the 'events' option will achieve what you want:
http://arshaw.com/fullcalendar/docs/event_data/

look at "events as a function" and "events as a json feed"

it will tell you the exact time interval you need events for
Status: Done
Labels: -Type-Defect Type-Question