Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Force Image to Download Upon Click

Force Image to Download Upon Click
Thread Tools
Junior Member
Join Date: May 2003
Status: Offline
Reply With Quote
Feb 1, 2005, 05:15 PM
 
Hey guys,

I'm just tossing up a quick little website, bascially just for personal/friend use, but I'd like to know if anyone knows how I can make it so that when someone clicks on a download link, it automatically makes the image start downloading, instead of just displaying it in a new browser window.

You can see what I mean if you go to the site, which is still in the works, and remains nameless for now.

msn display picture

If you click on an image, then click "Download now", it takes you to a page that for now, redirects you to the image file via a meta redirect. There's gotta be a better way. Is there a javascript or something I can use? Please advise.

Thanks!
Jon marus
www.jmarus.com - kicks by JM
     
jon31  (op)
Junior Member
Join Date: May 2003
Status: Offline
Reply With Quote
Feb 1, 2005, 08:03 PM
 
I've found that PHP headers can be used to do what I needed. Thanks for your time.
www.jmarus.com - kicks by JM
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:07 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2