Link save dialogue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Amy

    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


  • Ray at

    #2
    Re: Link save dialogue


    "Amy" <blar@blar.blar .com> wrote in message
    news:bp1666$pkd $1$8300dec7@new s.demon.co.uk.. .[color=blue]
    > Hello all,
    >
    > My aim: To click on a link (or what looks like a link to the[/color]
    user),[color=blue]
    > and rather than the file linked to opening in the browser or what ever,[/color]
    the[color=blue]
    > save dialogue comes up so they can download it instead.[/color]



    Ray at home


    Comment

    • Leif K-Brooks

      #3
      Re: Link save dialogue

      Amy wrote:
      [color=blue]
      > 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.[/color]

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

      Content-Disposition: attachment; filename=filena megoeshere

      Comment

      • Amy

        #4
        Re: Link save dialogue

        [color=blue]
        > http://www.aspfaq.com/2161
        >
        > Ray at home[/color]

        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 :-)


        Comment

        Working...