Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Link save dialogue

 
Thread Tools Search this Thread
Old 11-14-2003, 12:04 AM   #1
Default Link save dialogue


Hello all,

My aim: To click on a link (or what looks like a link to the user),
and rather than the file linked to opening in the browser or what ever, the
save dialogue comes up so they can download it instead.

I would like this to work with images - "click on the thumbnail to
download a larger picture" - kind of thing. JPGs specifically.

Can anyone help? I'm sure it's possible in java script, I just can't
find it anywhere. I've found a few ASP scraps but nothing concrete.

Hope you can help, fairly urgent I'm afraid :-/

Thanks for your time, I'm heading back to my pile of books for the
night

Amy K




Amy
  Reply With Quote
Old 11-14-2003, 12:29 AM   #2
Leif K-Brooks
 
Posts: n/a
Default Re: Link save dialogue

Amy wrote:

> My aim: To click on a link (or what looks like a link to the user),
> and rather than the file linked to opening in the browser or what ever, the
> save dialogue comes up so they can download it instead.


Configure your server to send the following header for the file you want
downloaded:

Content-Disposition: attachment; filename=filenamegoeshere
  Reply With Quote
Old 11-14-2003, 12:30 AM   #3
Ray at
 
Posts: n/a
Default Re: Link save dialogue


"Amy" <> wrote in message
news:bp1666$pkd$1$...
> Hello all,
>
> My aim: To click on a link (or what looks like a link to the

user),
> and rather than the file linked to opening in the browser or what ever,

the
> save dialogue comes up so they can download it instead.


http://www.aspfaq.com/2161

Ray at home


  Reply With Quote
Old 11-14-2003, 01:18 AM   #4
Amy
 
Posts: n/a
Default Re: Link save dialogue


> http://www.aspfaq.com/2161
>
> Ray at home


Wow! That's lovely thank you so much

Very useful bit of code

Would still like to know if it's possible in a client side HTML file, i.e.
using java script or such

Amy - off to make her CV downloadable


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump