Code Sample: Mouse Interaction
Last modified: December 03, 2013
Applies to: SharePoint Server 2010
The information in this topic applies to SharePoint 2013 as well as to SharePoint 2010. The samples provided in the SharePoint 2010 SDK also work in SharePoint 2013, but are not included in the SharePoint 2013 SDK.
Custom Error Messages sample
Mouse Interaction sample
Download the SharePoint 2010 Reference: Software Development Kit, which includes the Custom Error Messages sample.
When you install the SDK, the compressed (.zip) file that contains the samples is installed by default in the path C:\Program Files (x86)\Microsoft SDKs\SharePoint 2010\Samples\Visio Services. You can extract the samples to a folder location that you select.
Before you can install the sample, you must follow the instructions in the introduction of this article to download the SharePoint 2010 SDK and extract the sample. Then, complete each of the following procedures, which are explained in more detail in the topic Customizing Visio Web Drawings in the Visio Web Access Web Part in this SharePoint 2010 SDK:
Create or open an existing Visio drawing that contains several shapes and save it as a .vdw file to a document library.
Create a Web Parts page in Microsoft SharePoint Server 2010 and add a Visio Web Access Web Part to the page.
Add a Content Editor Web Part to the same page.
Link the Content Editor Web Part to the MouseInteraction.js file.
Also, you should follow the additional instructions in the comments in the sample file.