Solved

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

Posted on 2007-03-27
2
144 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
Comment Utility
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
Comment Utility
>> 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
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 …
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

10 Experts available now in Live!

Get 1:1 Help Now