Issue 609: eventclick function and 'X-Requested-With'
Status:  Done
Owner: ----
Closed:  Aug 2010
Reported by Liam.Bli...@gmail.com, Aug 18, 2010
 I'm initializing a calendar with the following code, when i click on an event ASP.NET MVC's IsAjaxRequest() is evaluated as false.

A possible explanation of this might be as explained in this stackoverflow post.

http://stackoverflow.com/questions/3501513/request-isajaxrequest-not-being-triggered

Is the hypothesis in the answers correct? Does the eventclick function not return XMLHttpRequest?

$(document).ready(function() {
                $('#calendar').fullCalendar({

                    header: {
                        left: 'prev,next today',
                        center: 'title',
                        right: 'month,agendaWeek,agendaDay'
                    },

                    events: "/Events/CalendarData",
                    allDayDefault: false,

                    selectable: true,
                    eventClick: function(event) {
                       
                        $('details').load(event.url);
                    },
                    eventRender: function(event, element) {
                        element.qtip({
                            content: event.title + " @ " + event.venue,

                            position: {
                                corner: {
                                    target: 'topLeft',
                                    tooltip: 'bottomLeft'
                                }
                            }

                        });
                    }


                });

            });

Aug 25, 2010
Project Member #1 adamrs...@gmail.com
i really have no idea. eventClick has nothing to do with ajax. you can put ajax-related code in there, should be no problem. the problem resides in your code somewhere
Status: Done
Aug 26, 2010
#2 Liam.Bli...@gmail.com
Ok,

Cheers for the response