How do you get JQFullCalendar to re-request events when the user changes the month they're viewing?
JQFullCalendar>>collectionOfEvents: passes only at creation time and >>eventsJsonRest: says to use >>eventsJsonGet:, but that method doesn't exist. Any help will be much appreciated! Brian. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
On 11-11-21 08:12 AM, Brian Murphy-Dye wrote:
> > > JQFullCalendar>>collectionOfEvents: passes only at creation time and > >>eventsJsonRest: says to use >>eventsJsonGet:, but that method > doesn't exist. Any help will be much appreciated! Brian. > Hmm. Thats my fault. Sorry about that. I wiped it out some time ago. I uploaded a new version of the FullCalendar package that contains the method: Name: JQWidgetBox-FullCalendar-Core-PaulDeBruicker.29 Author: PaulDeBruicker Time: 21 November 2011, 9:41:01.688 am UUID: b9b511b3-b780-4a11-a734-26472863d853 Ancestors: JQWidgetBox-FullCalendar-Core-PaulDeBruicker.28 somewhere along the line I wiped out JQFullCalendar>>#eventsJsonGet: I have added it back in this version of the package. To use it call eventsJsonGet: with a two argument callback when you initialize your calendar e.g: renderCalendar: html html div id: self calendarDivName; script: (html jQuery this fullCalendar ignoreTimeZone: true; selectable: self select; allDaySlot: false; selectHelper: self select; defaultView: defaultView; weekMode: 'liquid'; unselectCancel: '.event-editor'; year: self session calendarDisplayDate year; month: self session calendarDisplayDate month - 1; date: self session calendarDisplayDate dayOfMonth; eventsJsonGet: [ :start :end | self getEventsFrom: start to: end with: html ]; header: self header; onEventClick: (html jQuery ajax callback: [ :anEventId | self setEventToEdit: anEventId ] json: (JSStream on: 'calEvent.id'); script: [ :s | s << (s jQuery id: 'eE') dialog open. s << (s jQuery id: 'ee') replaceWith: [ :h | h render: eventEditor ] ]); onSelect: (html jQuery ajax callback: [ :newEventData | self setEventToCreate: newEventData ] json: (JSStream on: 'new Array(startDate,endDate,allDay)'); script: [ :s | s << (s jQuery id: 'eE') dialog open. s << (s jQuery id: 'ee') replaceWith: [ :h | h render: eventEditor ] ])) _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Most excellent. Thanks for wrapping the calendar for everyone's use and for the quick response. It's very helpful, Brian.
On Mon, Nov 21, 2011 at 10:45 AM, Paul DeBruicker <[hidden email]> wrote:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Paul, JQFullCalendarEvent>>start: is using class Timeperiod which appears to have been replaced with TimeSpan. Your previous release had the proper code for this:
start: aDateAndTime
timespan:=Timespan starting: aDateAndTime ending: self end. This is of little importance to me, so no hurry! But it will be helpful to new users of this very useful calendar. Thanks again for adding back in #eventsJsonGet:; everything is working wonderfully, Brian.
On Mon, Nov 21, 2011 at 1:18 PM, Brian Murphy-Dye <[hidden email]> wrote: Most excellent. Thanks for wrapping the calendar for everyone's use and for the quick response. It's very helpful, Brian. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |