My developer and I have been working on a custom tool tip for a calendar for Room Manager which is a third party Room Booking Solution for SharePoint 2010. What the tooltip does, is it does an ajax call to the details page of the room booking and display it in a tool tip. We used the sample javascript found in http://sharepointjavascript.wordpress.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/ and tweeked it a bit. The solution is two part: PreviewItemOnHovertest.js and a content web part on the calendar page.
PreviewItemOnHovertest.js:
https://skydrive.live.com/redir?resid=9F717AF2A2401F0F!5088
Content Web Part:
https://skydrive.live.com/redir?resid=9F717AF2A2401F0F!5089
PreviewItemOnHovertest.js:
https://skydrive.live.com/redir?resid=9F717AF2A2401F0F!5088
If you want to customize what fields participates in the hover (e.g. using Sharepoint Calendar WebPart), modify the calAddHover function.
Content Web Part:
https://skydrive.live.com/redir?resid=9F717AF2A2401F0F!5089
No comments:
Post a Comment