"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Go Back   Webmaster Forums > Code Forum > Website Scripts Forum

Reply
 
Thread Tools Rate this Webmaster Discussion
Old 08-29-2002, 06:45 AM   #1
ufg8rgrl
New Member
 
Join Date: Aug 2002
Location: Florida
Webmaster Discussions: 1
Rep Power: 49
ufg8rgrl is on a distinguished road
Save As Dialog Box

On a web page, when you have a link to a .doc, a .xls, a .ppt, or a .pdf...the browser automatically opens the file either in that borwser window. I would like to write a script or something that would force a save as dialog box to pop up rather than automatically open the file. This occurs when the file type is a .zip or .exe. I have searched a zillion html websites and javascript website...and I checked through the books that I have, and I can find nothing on the topic. If anyone has an idea, please let me know. Thanks!


ufg8rgrl is offline   Reply With Quote
Old 08-29-2002, 08:30 AM   #2
Enigma
Senior Member
 
Enigma's Avatar
 
Join Date: Nov 2000
Webmaster Discussions: 426
Rep Power: 65
Enigma has a spectacular aura aboutEnigma has a spectacular aura about
I vaguely remember reading somewhere that this can be done when specifying the mime-type. You might try searching on that.
Enigma is offline   Reply With Quote
Old 08-29-2002, 11:03 AM   #3
QuietDean
Administrator
 
QuietDean's Avatar
 
Join Date: Oct 2000
Location: Bournemouth, UK
Webmaster Discussions: 2,662
Rep Power: 97
QuietDean has a reputation beyond reputeQuietDean has a reputation beyond reputeQuietDean has a reputation beyond reputeQuietDean has a reputation beyond reputeQuietDean has a reputation beyond reputeQuietDean has a reputation beyond reputeQuietDean has a reputation beyond reputeQuietDean has a reputation beyond reputeQuietDean has a reputation beyond repute
Send a message via ICQ to QuietDean
Yes, its mime-types.

However, I suggest you read these two links explaining why its a bad idea -

http://www.htmlhelp.com/faq/html/media.html#force-download

http://webtips.dan.info/force.html
__________________
If one of our members helps you, please click the icon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
QuietDean is offline   Reply With Quote
Old 09-04-2002, 03:20 PM   #4
GISProgram
New Member
 
Join Date: Sep 2002
Location: Atlanta, GA
Webmaster Discussions: 1
Rep Power: 49
GISProgram is on a distinguished road
To ufg8rgrl,
Did you ever get any option to work? I am trying to do the same thing. Thanks.
GISProgram is offline   Reply With Quote
Reply

Bookmarks

Tags
box, dialog, save

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
how to open save/open dialog using HTML randy_o HTML Forum 1 04-13-2009 01:39 PM
can't save "save all changes" on MySPace intune001 Myspace Forum 8 04-23-2007 07:02 PM
a small dialog box: js2006 Javascript Forum 2 08-03-2006 11:21 PM
Save Target As... HTML HTML Forum 2 03-06-2001 02:48 AM
save page Bruno HTML Forum 3 03-02-2001 02:53 AM


All times are GMT -5. The time now is 08:33 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.