Solved

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

Posted on 2007-03-27
2
151 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
[X]
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
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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

617 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