We are working on SharePoint Workspace with Business Intelligence solution. There some report build with reporting services show in SharePoint page. Then, we come across a special requirement that the client do not allow user to “Right click” on the entire SharePoint page including the reports. If you are using page viewer or report web part to view the report in native mode, you will never able to include your JavaScript to disable the right click. This is because it using iFrame to link to the report. To overcome this problem, there are 3 steps need to be done.
October 9, 2007 at 12:55 pm
Can this be done for a picture library too? I would like to prevent people saving pictures of staff members from intranet portal.
October 9, 2007 at 4:52 pm
Yes, you can use the same approach. Just simply add a content editor webpart with the javascript into the picture galery page. You may also add the javascript in the global sharepoint JS file. This step will apply the disable right click features to the whole site.
December 11, 2007 at 9:34 pm
can you change the icon in the box to critical
December 11, 2007 at 10:42 pm
Hi darkstar,
You can not change the default properties of alert, confirm, and prompt with JavaScript. You have to use VBScript or you need to build your own out of layers… Do post the solution here if someone knows how to change it…