DFoxx
DFoxx

Reputation: 87

FullCalendar refetchEvents Cannot read property 'format' of null

When i am trying to refetch the events from Fullcalendar after a save i get the below error in fullcalendar.min.js:6. Why am i getting this error?

Uncaught TypeError: Cannot read property 'format' of null

I am using events as a json feed:

events: './scripts/events.php?user_id='+user_id,

Upvotes: 2

Views: 3135

Answers (1)

Ajay Patidar
Ajay Patidar

Reputation: 314

I was getting this same error message and I solved this.

In my code problem was that on the page load my calendar div container was hide. I was need to show this calendar on click of a button, so on page load I have set calendar div container to showing, and after page load complete hide that container.

Upvotes: 2

Related Questions