/    Sign up×
Community /Pin to ProfileBookmark

Download insted of Open

Hello;

I am not sure if this is an Html, java or somthing else type of problem, but:

I have this form on my website. Right now it is accessed by clicking on a link. The form opens using internet explorer and Word. I would like the form to download to the users computer using the standard download box you all ways see when downloading things from the internet.

Can anyone help me here?

Thank Tim

to post a comment
HTML

16 Comments(s)

Copy linkTweet thisAlerts:
@crh3675Feb 01.2004 — You need to pass different headers for the file using a server-side language.
Copy linkTweet thisAlerts:
@KochisTauthorFeb 01.2004 — This information is good but means nothing to me. Looking at another site that uses downloading of files I see this code.

<iframe height="0" width="0" src="http://download.microsoft.com/download/e/4/4/e4481402-244d-460a-8f98-ca0e5905a97c/sp1aexpress_usa.exe"></iframe>

When I put it in the html code on my website it works the same as on the site it came from, it downloads the file. But when I change the code to include my website information it then opens in word just like it does normaly. I thought maybe this <iframe might have somthing to do with it.
Copy linkTweet thisAlerts:
@crh3675Feb 01.2004 — You need to use PHP or ASP or something similar to push the file to the browser. This cannot be accomplished solely with HTML
Copy linkTweet thisAlerts:
@ray326Feb 01.2004 — Without access to server-side processing or configuration your only alternative is to give the file an "unusual" extension like ".form" or ".wordform" and then instruct the downloader to rename it to ".doc" once it's on her system. Even this won't work 100% of the time on some versions of IE.
Copy linkTweet thisAlerts:
@The_CheatFeb 01.2004 — or you can compress it in a .zip?

And isn't this something you can do with .htaccess?? ?
Copy linkTweet thisAlerts:
@PeOfEoFeb 01.2004 — .zip i think is the best solution if you do not want to touch the server side scripting, which I might add can be annoying too, mozilla likes to save everything as .html, you have to open it in notepad and save it as a .avi or something. Keep in mind, htaccess is only going to fly on an apache server. I can't comment on its capabilities, I use iis.
Copy linkTweet thisAlerts:
@96turnerriFeb 02.2004 — pyro that link you posted above, didnt force a download for me (opera 7.23)

Added:

o no ignore me im being stupid again, says at the bottom does not work in opera 7 :mad:
Copy linkTweet thisAlerts:
@PeOfEoFeb 02.2004 — also check it in mozilla. No browser extention. Guess that is better then my script tho, it always wants to save as html.
Copy linkTweet thisAlerts:
@Robert_WellockFeb 02.2004 — It depends upon the user-agent that the liveware has however, if you are using Apache Server you could use .htaccess and octet-stream to force downloads.

For example within the .htaccess file you'ld write:

<i>
</i>AddType application/octet-stream .doc
AddType application/octet-stream .zog
Copy linkTweet thisAlerts:
@jdaviaFeb 03.2004 — As you all know exe and zip files will download rather than open on the web. There is a file in WinZip32 called wzsope32.exe that will make a self opening Exe file of one or more zipped files.

It carries information saying that WinZip is not registered. But it works.

Using a registered version of WinZip will download and open without that message.

There is also an Internet Browser Support Add-On, which lets you

download and open zip files from the Internet with one click. I use this quite a bit.

You can get these and the latest version of WinZip at winzip.com
Copy linkTweet thisAlerts:
@PeOfEoFeb 03.2004 — hey, long time no see jdavia (or is it just me). Checking out winzip now, the problem is winzip is not freeware, so you are going to get that annoying message every time. ?
Copy linkTweet thisAlerts:
@jdaviaFeb 03.2004 — Yeah PeOfEo I get on sometimes when my head is not aching from some of the other projects I get involved in.

Get the latest version anyway and see what it does. Maybe the message will be seen, maybe not, but the Internet Browser Support Add-On is free and it might do what you want.
Copy linkTweet thisAlerts:
@PeOfEoFeb 03.2004 — :/ I use mozilla firebird ?
Copy linkTweet thisAlerts:
@alansmithFeb 03.2004 — [i]Originally posted by PeOfEo [/i]

[B]:/ I use mozilla firebird :P [/B][/QUOTE]


Thats one h^&% of a sig there lol.
Copy linkTweet thisAlerts:
@PeOfEoFeb 04.2004 — I should probably organise and trim it should't I? I am hogging all the bandwidth.
×

Success!

Help @KochisT spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...