473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Microsoft Word/Excel download links

I am writing pages that have hrefs to Word docs and
Excel files. I'd like the link to function so that
when it is clicked on in IE, instead of the browser
showing the Word or Excel document that the user is
prompted to save the file. Any idea how to do this?

Thanks,
David
Jul 20 '05 #1
3 6569
David Alyea wrote:
I am writing pages that have hrefs to Word docs and
Excel files. I'd like the link to function so that
when it is clicked on in IE, instead of the browser
showing the Word or Excel document that the user is
prompted to save the file. Any idea how to do this?


Please read the relevant FAQ before asking a newsgroup for help.

<URL:http://www.htmlhelp.com/faq/html/media.html#force-download>
--
Jim Dabell

Jul 20 '05 #2
In post <4e*************************@posting.google.com>
David Alyea said...
I am writing pages that have hrefs to Word docs and Excel files. I'd like
the link to function so that when it is clicked on in IE, instead of the
browser showing the Word or Excel document that the user is prompted to
save the file.


what if the visitor doesn't want that? if you want that change the
options for _your_ browser. let the visitor to decide for themselves
what they want done with the file.
--
23/September/2003 07:07:58 am
Jul 20 '05 #3
David Alyea wrote:
I am writing pages that have hrefs to Word docs and
Excel files. I'd like the link to function so that
when it is clicked on in IE, instead of the browser
showing the Word or Excel document that the user is
prompted to save the file. Any idea how to do this?


And when it's clicked on in Mozilla, what should it do?

Actually, you'd probably have a better chance of fooling Mozilla into
doing this, by changing the MIME type headers sent by the server; IE has
the nasty habit of second-guessing MIME types by file sniffing,
extension checking, etc., in violation of the specs.

However, the MIME type isn't supposed to tell the browser what it must
do with the data, only to tell it what data type it is; it's up to the
browser to decide what to do with it.

--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: frankvfox | last post by:
I am struggling to export Excel spreadsheets to the client machine in an ASP.Net application. Everything was great until exporting Excel got into the act. Documentation on MSDN is so poor regarding...
1
by: ME | last post by:
http://www.codefoot.com had this; but can someone give me a clue? JavaScript: Invoking The SaveAs Dialog From A Web Page Re: damn, word doc opens by default, onclick event or similar needed ...
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
1
by: Robin Tucker | last post by:
Heres and interesting problem: I have a VB.NET program that creates reports via. Word Automation. This all works fine. What I want to do as part of this report generation process is to embed a...
4
by: Irfan | last post by:
hi, Two questions, i dont know if the cause if these two problems is the same. 1. As soon as i Add->Reference -> Microsoft Excel 11.0 Object library. It gives an error 'The referenced...
1
by: uto | last post by:
can i make resume web page into word or excel file? resume web page type is table and include photo and etc how can i make this? is there crystalreport to implement this?
6
by: Justin | last post by:
Hi all, i need some help over here... i found the solution to export file from mysql db into *.csv. but is there anyway to convert the contents into *.doc and save in my webserver and providing a...
7
by: bloukopkoggelmander | last post by:
Morning all I have a rather strange problem I have been trying to solve for a few days now. I am using Namo Web Editor for our local Intranet. All static pages with fixed URL's. I have a few links...
6
by: Eddie | last post by:
Hi all, I am displaying a number of reports, and giving the users an option to display them on the web or download them to Excel. If they want the Excel file, I just use the PHP header command...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.