SITUATION:
I have a file that has to be opened by an unknown number of users on my SharePoint site. It’s an InfoPath form, which is automatically opened by the browser per the MIME Types settings. My organization uses IE, and since I’m a ‘node’ of the organization, I can’t access headers or .htaccess files. It’s also an intranet with TONS of security settings, many of which have been changed so often on individual computers it’s impossible to account for them.
ATTEMPTS:
I’ve tried JavaScript target='_blank', and execCommand. Unfortunately neither of them work and I’m at my wits end! The Infopath form is not browser-enabled, and the document library is set to open in Client Program, yet most people cannot open the form.
QUESTION:
Is there a way using JavaScript or a similar Client-side language to prompt that ‘Open’ box? Unless someone knows of a way to configure it to always prompt instead of automatically open in the browser, that is.
The soultion is to really work with it on the server. The Content-disposition header needs to be set. MS KB Aticle
Teh sharepoint admin should be able to set the setting in the General Settings and set
Browser File Handlingto strict.