[Seaside] Re: refreshing events on JQFullCalendar
Paul DeBruicker
pdebruic at gmail.com
Wed Jan 16 14:42:39 UTC 2013
If you download the latest full calendar example from squeak source I've added a link below the example calendar that turns on the "change event color" functionality. The logic for that is split between seaside and a plain jQuery function I added to the example
On Jan 16, 2013, at 12:31 AM, Davide Varvello <davide.varvello at gmail.com> wrote:
> Hi Paul,
>
> Nothing other than the jQuery docs. jQuery in Seaside maps 1:1 with
> jQuery because I think Lukas Renggli builds the package from the jQuery
> docs or source. I'm sure someone on the Seaside list has a better
> answer for you about jQuery + ajax + Seaside. I don't think its
> possible to do conditional logic with it either. My preference, and I
> think the recommendation, is to do as little as possible in Seaside with
> jQuery and instead put most of the logic in a js method that is called
> on the client.
>
> The docs of fullcalendar here: http://arshaw.com/fullcalendar/docs
> are extensive. I think I've got most of it in that package. To get the
> events in the client you want #clientEvents:
>
> I added a link to the example that does what you want, in a limited way.
>
>
> Sorry Paul, which link are you saying about?
>
> Davide
>
>
> Every 10 seconds it changes the background color of the events and only
> sends enough JSON to identify the event and specify the new background
> color.
> It does not re-render the whole thing. I think building the js
> function in Seaside would be not fun.
>
>
> When you initially render the events be sure to give them a unique id by
> setting something in the id inst var. (In the example its the first line
> in the #renderCalendar: method)
>
>
>
> Take care
>
> Paul
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130116/483b40b7/attachment.htm
More information about the seaside
mailing list