canvs / fullcalendar

Automatically exported from code.google.com/p/fullcalendar
0 stars 0 forks source link

calevents array: can i get something out on a dayclick? #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When i do a custom function with an ajaxcall on the 'events' parameter,
like you show in the documentation 'Event Data provider', i get a result
from PHP. But can i keep this array and use it lateron for example on a
dayClick event to show the events of that day beneath the calendar? 
I tried to put in a var but it is undefined when i want to use it.

Original issue reported on code.google.com by paul.wol...@gmail.com on 19 May 2009 at 11:13

GoogleCodeExporter commented 9 years ago
sorry, i just found out, problem solved

Original comment by paul.wol...@gmail.com on 19 May 2009 at 11:24

GoogleCodeExporter commented 9 years ago
Glad you got it to work.

I would personally do a custom event provider (where you specify a function), 
use the
$.getJSON jquery function, keep track of the result that comes back, then pass 
it off
to the callback. Basically just intercept the JSON.

In v1.2 this will be much easier... you'll be able to jquery FullCalendar for 
this
sort of info.

Original comment by adamrs...@gmail.com on 25 May 2009 at 5:38