Click here to Skip to main content
15,894,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could anyone tell how to handle click event of Calendar overlay items in SharePoint 2010. I want to open items in calendar overlay in Popup instead of new window.

I have tried this javascript and placed in CEWP but still its not working for me.

XML
<script src="/SharedDocument/jquery-1.7.1.min" type="text/javascript"></script>

<script type="text/javascript">
// load our function to the delayed load list
    _spBodyOnLoadFunctionNames.push('calendarEventLinkIntercept');

    // hook into the existing SharePoint calendar load function.
    function calendarEventLinkIntercept()
    {
        if (SP.UI.ApplicationPages.CalendarNotify.$4a)
            {
                var OldCalendarNotify = SP.UI.ApplicationPages.CalendarNotify.$4a;
                SP.UI.ApplicationPages.CalendarNotify.$4a = function ()
                {
                    OldCalendarNotify();
                    bindEventClickHandler();
                }
            }
        if (SP.UI.ApplicationPages.CalendarNotify.$4b)
            {
                var OldCalendarNotify = SP.UI.ApplicationPages.CalendarNotify.$4b;
                SP.UI.ApplicationPages.CalendarNotify.$4b =  function ()
                {
                    OldCalendarNotify();
                    bindEventClickHandler();

                }
        }
      // future service pack change may go here!
      // if (SP.UI.ApplicationPages.CalendarNotify.???)
    }
</script>


I have placed JQuery refrence in library SharedDocument(custom).

Hoping for a quick answer.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900