473,387 Members | 3,781 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,387 software developers and data experts.

Force open of mime type

Is there a way to force the client to open a particular file type. Currenlty
text files that are opened by the web site are opened inside the browser, I
would like to stop this and have them prompted to open or save the file.

Thanks

John
Jul 23 '05 #1
2 1544
On Mon, 06 Dec 2004 14:35:51 GMT, John Hayes <ha*******@yahoo.com> wrote:
Is there a way to force the client to open a particular file type.


See the FAQ (<URL:http://jibbering.com/faq/>). Your answer is there.

So you know in advance, this cannot be done with Javascript.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2
Thanks for the reply. I believe I posted to the wrong group sorry. BTW the
link gives a "
The page cannot be displayed"
"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:opsildfdxax13kvk@atlantis...
On Mon, 06 Dec 2004 14:35:51 GMT, John Hayes <ha*******@yahoo.com> wrote:
Is there a way to force the client to open a particular file type.


See the FAQ (<URL:http://jibbering.com/faq/>). Your answer is there.

So you know in advance, this cannot be done with Javascript.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.

Jul 23 '05 #3

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

Similar topics

27
by: Curious Angel | last post by:
I have a resume in PDF format and I want anyone who LEFT-OR-RIGHT clicks the link to force the file to be saved, and in any event _not_ opened. Since the PDF will be in his cache in any event, I...
4
by: Kevin Muenzler, WB5RUE | last post by:
How do I force a browser to download a file instead of displaying it? In other words I have a page with MP3 and WMA files on it and I would like for the visitor to download the file instead of...
4
by: tma | last post by:
Short of zipping my file, are there any other alternatives to the below? I'm trying to add anchors in code and I need the link to force a download of the .pdf rather than open a new window or...
3
by: kim | last post by:
GOOD morning, I try to open xx.vbs in <href="./xx.vbs"></hef> but it pop up the file download mesage. How can i disabled it? I try another solution like this : set ws =...
41
by: freegnu | last post by:
hi all, it strange, when i use open() to open a FIFO to write, but i find when i use open(Fifo,O_WRONLY | O_CREAT | O_TRUNC); it will block i really confused
5
by: MoshiachNow | last post by:
HI, How do I force a browser to open a certain file with notepad ? <LI><A HREF="D:/Program Files/yohoLogFile.txt.4" ><p style="font-family:font-size: 7pt;"yohoLogFile.txt.4 </A></LI>'; ...
1
by: ABC | last post by:
Hi, I found many methods to download attachment files, but I cannot found any to force the browser open excel file if the download is excel type. Is there any reference or tutorial on internet?
1
by: pronerd | last post by:
Ok, I am looking for way to have a user download a file, and have it open the apprpreate client side application. For instance lets say a user is downloading an MS Word file. I want the user...
24
by: Gary Hasler | last post by:
I want apache to parse all .html files for php code. Our 'real' web server is rented from ICDsoft ( php 5 on Apache on Linux whatever), and their instruction is to add the following to the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.