fullcalendar

Removing specific events with removeEvents method

元气小坏坏 提交于 2019-12-21 04:37:10
问题 I've just started out using this plugin and I am having some trouble removing events that I have just created. I can delete all the events when using eventClick, but not particular ones on eventClick. Any help would be appreciated. Here is my code. <script type='text/javascript'> $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var calendar = $('#calendar').fullCalendar({ header: { left: 'prev,next today',

jQuery fullCalendar + Fancybox popup to edit event

此生再无相见时 提交于 2019-12-21 03:15:13
问题 I am generating events on fullCalendar with this code <script type="text/javascript"> $(document).ready(function() { $('#calendar').fullCalendar({ // put your options and callbacks here header: { right: 'today month,agendaWeek,agendaDay prev,next' }, events: [ <?php foreach($cal_data as $row): ?> { title : '<?php echo $row->plant_name . ' ' . $row->value_2; ?>', start : '<?php echo $row->date . ' ' . $row->time; ?>', allDay: false, url : '<?php echo base_url() . 'events/events_edit/' . $row-

create event with fullcalendar when clicking on calendar (rails)

好久不见. 提交于 2019-12-20 21:48:19
问题 How do you create an event when the user clicks on any part of the calendar? and then store it in the database as a new event? I know you have to use: select: function(start, end, allDay) to get the "start" and "end" times. But after I get this data how do I pass it to the database? Thanks! 回答1: You may use an ajax request to store the new event in your DB. There is a demo on the projects homepage, which can easily be adapted. Via jQuery for example like this : select: function(start, end,

Hide start time in FullCalendar

淺唱寂寞╮ 提交于 2019-12-20 16:23:07
问题 On FullCalendar, in the month view, is there a way to hide an event's start time? 回答1: Just add to calendar options displayEventTime: false 回答2: add the following style to your css .fc-event-time{ display : none; } or in version 2+: .fc-time{ display : none; } 回答3: Try this, it works for me: $('#calendar').fullCalendar({ displayEventTime : false }); That should hide the start time in the title event. 回答4: The following hides the date on the month view only: .fc-view-month .fc-event-time{

Get selected date from fullcalendar

回眸只為那壹抹淺笑 提交于 2019-12-20 16:22:33
问题 I added the calendar to my asp.net mvc 2 application from here . I want to pick the selected date where I am going to enter the event. How can I get selected date? Also I want to save this date and corresponding event to the database. How to do this also ? 回答1: Use this code when you setup the plugin $('#calendar').fullCalendar({ selectable: true, select: function(start, end, jsEvent, view) { // start contains the date you have selected // end contains the end date. // Caution: the end date

Jquery Full Calendar Questions - Color on group of events & multiple event sources

a 夏天 提交于 2019-12-20 14:46:20
问题 I am looking at jquery full calendar 1.5 and have a couple questions. How would multiple source look like? jQuery $.ajax options You can also specify any of the jQuery $.ajax options within the same object! This allows you to easily pass additional parameters to your feed script, as well as listen to ajax callbacks: $('#calendar').fullCalendar({ eventSources: [ // your event source { url: '/myfeed.php', type: 'POST', data: { custom_param1: 'something', custom_param2: 'somethingelse' } error:

How do I change an event's background color with different colors, in fullcalendar?

懵懂的女人 提交于 2019-12-20 09:59:12
问题 I'm using the last version of fullcalendar , I looked on documentation how change background color event, but I don't know how make to different events. I need for code sample with events red, blue, green, like the following picture: I see this code, on document site, but I can't to apply 2 colors: $('#calendar').fullCalendar({ editable: true, events: [{ title: 'Teste1', start: new Date(y, m, d, 10, 30), allDay: false, editable: false }, { title: 'Teste2', start: new Date(y, m, d, 11, 40),

Getting id from eventReceive

廉价感情. 提交于 2019-12-20 03:55:13
问题 I'm trying to get the id attribute value from my div and put in calendar . I've tried many ways without success. I have the following div that I created: vv_lista_servico = vv_lista_servico +"<div class='fc-event fc-list draggable' data-event='{\"id\":\""+item.id+"\"}' data-duration='00:30'>"+item.descr+"</div>"; When ready, I have the following html: <div class="fc-event fc-list draggable ui-draggable ui-draggable-handle" data-event="{"id":"244"}" data-duration="00:30">Test 1</div> When I

No Callback after SQLite-Request

烈酒焚心 提交于 2019-12-20 03:23:06
问题 awesome plugin. But I tried to load some events via SQL-Rquest. The Request is successfully, I can put the Array in another Container or alert them, but the Calendar wouldnt load the events. Here my Script $('#calendar').fullCalendar( { header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, editable: true, events: function(start, end, callback) { var rs = db.execute("select * from xCal"); var i = 0; var events = '['; while(rs.isValidRow()) { if(i == 0){var

fullCalendar events not showing even though correct JSON feed

萝らか妹 提交于 2019-12-20 02:58:25
问题 As a bunch of others I have a problem getting my JSON feed events to render in the calendar. The problem is often wrong JSON formating, but this is not the case since I've validated it with JSONlint and hardcoded the JSON feed in Site.Master with positive result. FireBug is getting the JSON response correctly but it is still not showing up in fullCalendar. I'm out of ideas. The FireBug response: [{"id":1,"title":"TESTTITLE","info":"INFOINFOINFO","start":"2012-08-20T12:00:00","end":"2012-08