tags:

views:

256

answers:

3

How I can open lightBox in eventClick, I need init a lightBox whe I click in a event.

Thanks!!

A: 

eventClick documentation is located here: http://arshaw.com/fullcalendar/docs/mouse/eventClick/

Within the eventClick function you'll write code to display your lightBox. Are you having any specific issues? You're question is very general.

Gregg
A: 

I am not having any luck using LightBox or ThickBox with FullCalendar either. I have assigned the href the "thickbox" class and it no works.

Josh Breslow
+1  A: 

I actually ended up using fancybox and the way I managed to get it working was to use the eventAfterRender to bind it up. I didn't have to do anything to the eventClick to prevent url follow, I think fancybox took care of that. It didn't work when I performed this same wire up in the eventClick so you might want to follow this example with lightbox and see if that works for you as well. Here is the relevant part of what I did. Cheers!

$('#calendar').fullCalendar({
    eventAfterRender: function(event, element, view ) { 
        if(event.url) {
            $('a',$(element)).fancybox({
                type: 'ajax'
            });
        }                    
    }    
});
Lawrence