Click to See Complete Forum and Search --> : Forcing "Save as" window


dan from T.O.
10-04-2004, 12:36 PM
Ola, I'm Dan from T.O. and I'm such a newb.

Is there any way to tag an A HREF so that it forces the "Save As" window to appear? I am trying to make software files available but they are text encoded. Whenever anyone activates the link it opens the file in the browser as text gibberish.

Can this be done with HTML? or should I go bug the Javascript / PERL boys about it?

thank you gentlemen

AdamGundry
10-04-2004, 12:52 PM
Welcome to the forums.

The best way to do this is to use a server-side script, such as pyro's PHP script (http://www.infinitypages.com/research/download.htm) or this ASP one (http://www.psacake.com/web/if.asp). You can use Perl or most other server-side languages as well.

I believe something similar is possible in JavaScript but it uses IE-only code. I would strongly advise you to use a server-side language if at all possible.

Adam

dan from T.O.
10-04-2004, 01:13 PM
Thank you.

I will forward the URLs for those examples to our in-house web designer, and then get back to my own duties as the dude in charge of taking over the world.

have a good day.

dan from T.O.
10-05-2004, 09:27 AM
Ok, the word on the street is that we MAY be able to use the ASP version, but there are so many stability issues (see comments in actual code) that I am off to the other boards.

Hazaah !