Pop up when trying to open files.
Im at my wits end here and would like to know ifanyonehas encounterd thisproblem. I have this issue where if I try to open any filethat endswith a .pdf or .txt or any other file that is not an MS Office type document in SharePoint I get prompted with a dialog box that states: You are about to open: Name: somefile.pdf From: <ServerName> How would you like to open this file? Read Only Edit Some files can harm your computer. If this information looks suspicious, or you do not fully trust the source, do not open the file Here are the steps Ialreadytried to resolve it:1. Added my sharepoint site as a Trusted sites in Internet Explorer 2. Went to Folder Options -> File Types tab -> Selected the pdf extension -> Made sure that 'Confirm open after download' and 'Browse in same window' is unchecked.However,I still get the dialog box for the .pdf and .txt files. This howeveris not an issuewith the MS Office documents and I can onlyopen only .doc, .xls and .ppt files fine without the dialog box appearing on the screen.On the client PC there is an installation of Microsoft Office 2003 and 2007. I uninstalled 2003 but I still get the same issue with the pop up window. Any thoughts on what might be causing the issue?
October 21st, 2009 3:51am

The dialog box that you're getting is by design. There is a JavaScript function called DispEx specified in Core.js file that fires when you click on a document link (see this post for more details: http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/ccf8b7b6-168e-4cf8-9a33-35fe49ea89ae). With Office 2007, you won't get the prompt for Office documents as long as the sharepoint site is added as a trusted site. PDFs are not natively supported file types in WSS/MOSS, so you'll get the prompt for PDF docs.Check out this post: http://www.wssdemo.com/Blog/archive/2008/05/10/sharepoint-document-libraries-and-users.aspx. It dives deeper into the mechanics about what's going on when a file is downloaded from SharePoint and also offers some suggestions.Andre Galitsky, MCTS, Lexington, KY -- My SharePoint Blog: http://www.sharepointnomad.com
Free Windows Admin Tool Kit Click here and download it now
October 21st, 2009 7:06pm

Moving the site to trusted sites actualy stops the JAVAScript function DispEx from running. You can test this by adding an alert("hello"); in a non production enviroment. There are a number of reasons to keep your SharePoint sites in the local intranet zone so you can AT YOUR OWN RISK comment out the following line. /*return DispDocItemEx2(ele, objEvent, fTransformServiceOn, fShouldTransformExtension, fTransformHandleUrl, strHtmlTrProgId, iDefaultItemOpen, strProgId, strServerFileRedirect);*/
June 2nd, 2010 4:47pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics