Solved

links to open in new window -not download. Dreamweaver OS X

Posted on 2007-03-27
2
145 Views
Last Modified: 2010-08-05
I want to designate word docs and pdfs to open in a new window from the link on my site.  Currently the Word docs automatically download - so I want to view them first... how can I do that?
0
Comment
Question by:zia616fm
2 Comments
 
LVL 25

Accepted Solution

by:
Rouchie earned 125 total points
ID: 18800944
Without using a server-side language (ASP, PHP etc) to control the page headers, you are at the mercy of the browser's default behaviour.  Therefore you need to edit the file type data within Windows to control how Windows deals with the file once it's been downloaded to the Temporary Internet Files folder.

If you have a server side language, you can manually add a header to the page before it's sent, that tries to get the browser to display it.  The code (in ASP) is:

Response.Clear()
Response.AddHeader "Content-Disposition", "inline; filename=myfile.doc;"

Note that there is NO 100% way of making this work in all browsers/platforms.
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 125 total points
ID: 18801830
>> Note that there is NO 100% way of making this work in all browsers/platforms.

Bears repeating.  Any user of any browser can force docs and pdfs to download no matter how much effort you exter to the contrary.  

Ironically, if you wanted to force the documents to download instead of opening in the browser it's far easier to accomplish.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now