Abby Lazaro Abby Lazaro - 1 month ago 13
PHP Question

fullcalendar is working fine in localhost but not in server

I have a calendar which displays the events from the database. The calendar works perfectly in localhost, but when I uploaded it, the events doesn't display.

enter image description here

Answer

You can do 2 things,

Either you reference full-calendar using CDN:

//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/fullcalendar.min.js
//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/fullcalendar.min.css
//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.0.1/fullcalendar.print.css

Or install it using Nuget:

Install-Package jQuery.Fullcalendar

You have to make sure that the codes are deploy type:"Content" with "Copy Always"

On the other hand, you can check your codes if loaded properly using "Ctrl+Shift+I" - (inspect element) in Google Chrome.