tags:

views:

316

answers:

2

How can I add a click event on the event and pass the day and event time as url variable to another page. Like when user click in the event I want to pass the date and event time to another page for processing. Any idea are welcome.

Thanks

+1  A: 
$('#calendar').fullCalendar({
    eventClick: function(calEvent, jsEvent, view) {
        window.location = "http://www.domain.com?start=" + calEvent.start;

    }
});

Look here for more info: http://arshaw.com/fullcalendar/docs/mouse/eventClick/

Dustin Laine
I didn't get it from documentation either... This is much better +1
Ropstah
Also, you can use the @Kyle Partridge answer, personally I like that better. I use my method as I am getting an event from business layer that I do not want tied to a domain, so I construct the link on the web application.
Dustin Laine
A: 

There is a url parameter on the Event object. This will just create an <a> tag. You could build this in the back end yourself to pass whatever arguments you need over the url. @durilai's javascript method would work as well.

partkyle