Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2007-03-27
2
148 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Spry missing in DWcc 6 320
dw grid expanded layout view 8 323
Multi Step Form using jQuery 11 950
Regular Expressions find/replace needed 10 145
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 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