fullcalendar

Fullcalendar JSON Feed Caching

∥☆過路亽.° 提交于 2019-12-21 20:38:12
问题 How can I get Fullcalendar to cache events from a JSON feed? I don't think lazyfetching does what I want it to. It works for a single month. Say I load a month, January, and then change to the day view, the data is cached and does not send an ajax request. But If I change months to Feb and back to Jan, January still reloads. The author attempted to accomplish the request back in March of 2011 but still fell short, I believe. He lets the browser possibly cache the result of a request, but this

Work time in fullcalendar [Solution]

橙三吉。 提交于 2019-12-21 17:57:22
问题 Full calendar have no included options to work-time feature (selecting first and last rows in agenda view for any day - where in example company is not working). I managed something like that: viewDisplay: function(view){ $.ajax({ url: 'index.php?r=calendar/Default/worktime', dataType: 'json', success: function(data){ if(view.name=='agendaWeek') selectWorkTime(data, 30, 0, 24, false); else if(view.name=='agendaDay') selectDayWorkTime(data, 30, 0, 24, view, false); } }); } Where index.php?r

How to disable event links in FullCalendar when using Google Calendar feed?

℡╲_俬逩灬. 提交于 2019-12-21 12:55:13
问题 I am using FullCalendar library to load events in my calendar from Google Calendars. Unfortunately after events have been added to the calendar, they are clickable. When you click on the event you are automatically redirected to the Google Calendars page to view that specific event, or if you have enaught access rights - to directly edit it. While this is very useful for event management, I cannot imagine why a site visitor would like to be redirected to an external page every time he clicks

FullCalendar end date is not inclusive

删除回忆录丶 提交于 2019-12-21 09:27:09
问题 I'm using FullCalendar Beta2, and I set the AllDay flag to True. The calendar still treats End Date as exclusive! How can I make the End date inclusive? Many thanks. 回答1: @ZooZ - According to the Beta 2 Upgrade docs, the end date is now exclusive: all end dates are now exclusive. For example, if an all-day event ends on a Thursday, the end date will be 00:00:00 on Friday. The 1.x versions had some strange rules in regards to this. Things should be much simpler now that exclusive end dates are

Full Calendar Add event not via promot

随声附和 提交于 2019-12-21 06:40:29
问题 Am wondering how I can allow users to fill out a form instead of the promot box that seems to pop up, when a user clicks on a black part of the fullcalendar this is basically what I have done so far. as you can see i have it sending the data to a PHP page that is working, but I am just not happy with the prompt box and instead would like it to be a nice form that they are able to add notes to as well. select: function(start, end, allDay) { var title = prompt('Event Title:'); if (title) {

FullCalendar $('td.fc-day').mouseover sometimes get wrong date on small month calendar

一世执手 提交于 2019-12-21 06:07:07
问题 To implement tooltips for my very small month calendar using fullCalendar, I used the following code to capture the mouse cursor entering a day on the calendar, and log to the console the date using data-date attribute for the fc-day class: $('td.fc-day').mouseover(function () { var strDate = $(this).data('date'); console.log(strDate); }); As I move the cursor thru a date cell, the reported date in the log window consistently changes to the date one week prior to the date I'm on, when I'm

How to check event is already exist for a day - fullcalendar

…衆ロ難τιáo~ 提交于 2019-12-21 06:04:16
问题 How to check event is already exist for a day while using renderEvent method. I have found may answer in in stack for dayClick with clientEvents , I am not sure how it use for renderEvent . var diffDay = 5; for (var i = 0; i < diffDay; i++) { var copiedEventObject = $.extend({}, originalEventObject); var newDay = new Date(event.start); copiedEventObject.start = newDay; $inlineCalendar.fullCalendar('renderEvent', copiedEventObject, true); } I am looking a if condition like below or any other

Get events clicking a day in FullCalendar

﹥>﹥吖頭↗ 提交于 2019-12-21 05:05:20
问题 I want to know if is possible to get a list or array or something with events of one day by clicking that day in fullcalendar. Now I get the events from google calendar, if I need to make a query each time I want to get events of one day, it will be so hard for connections. I guess it has to be possible since you already have the events for rendering them. One user ask me for code: dayClick: function(date, allDay, jsEvent, view) { console.log(date); console.log(allDay); console.log(jsEvent);

Hover effect on one cell of agendaWeek + fullcalendar

若如初见. 提交于 2019-12-21 04:43:12
问题 Hi I am using FullCalendar by Adam Shaw (http://arshaw.com/fullcalendar/). I am using a month and agendaWeek view. I want to put in an hover effect when the user is hovering over a date in month view or a timeslot in agendaWeek view. I tried to change the css as follows: .fc-widget-content:hover { background-color: red; } This works for month view. File attached However, the same code selects the whole line in the agendaWeek view when I just need one timeslot to be highlighted. Example

Insert event dynamically to Fullcalendar using Jquery

大憨熊 提交于 2019-12-21 04:39:14
问题 I am having trouble to add new event to fullCalendar using Jquery. I am using Eclipse to develop web and not familiar with Ajax at all and aperantly, it does not work with my eclipse. Everything is written inside a button.click function in jquery. var subject = $("#txtEventName").val(); //the title of the event var dateStart = $("#txtDate").val(); //the day the event takes place var dateEnd = $("#txtDateEnd").val(); //the day the event finishes var allDay = $("#alldayCheckbox").val(); //true: