Closed Thread
How to set link to prompt a download?
Old 07-28-2010, 12:46 PM How to set link to prompt a download?
Super Talker

Posts: 116
Name: Patric
Trades: 0
Hi,

I'm making a site, where one of the links is "download podcast" which is then just linking to a .mp4 file.

The .mp4 file just automatically loads into a browser if a user has quicktime installed, is there a way to just have it so that the link can have a prompt asking to download the file to a computer?

Thanks
Reckoner is offline
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 07-28-2010, 01:08 PM Re: How to set link to prompt a download?
chrishirst's Avatar
Super Moderator

Posts: 32,316
Location: Blackpool. UK
Trades: 0
Not with HTML.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Code Samples | Crowded Nightclub? | Random Ramblings
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 07-28-2010, 01:10 PM Re: How to set link to prompt a download?
Super Talker

Posts: 116
Name: Patric
Trades: 0
Well, can it be done with Javasript or Jquery or anything like that?

After a little investigating though, I don't think that can be done. I might just add a javascript hover over the link with instructions to right click "save target as to download this podcast."

Last edited by Reckoner; 07-28-2010 at 01:18 PM..
Reckoner is offline
View Public Profile
 
Old 07-28-2010, 01:11 PM Re: How to set link to prompt a download?
ModDish's Avatar
Super Talker

Posts: 114
Trades: 0
have a zipped copy of the file of the server, and have the download link point to the zip file, and it will prompt to download.
__________________
Thanks
Evan
From ModDish - Website Design Firm
ModDish is offline
View Public Profile
 
Old 07-28-2010, 01:13 PM Re: How to set link to prompt a download?
chrishirst's Avatar
Super Moderator

Posts: 32,316
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by Reckoner View Post
Well, can it be done with Javasript or Jquery or anything like that?
Nope, server side code ONLY
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Code Samples | Crowded Nightclub? | Random Ramblings
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 07-28-2010, 01:14 PM Re: How to set link to prompt a download?
chrishirst's Avatar
Super Moderator

Posts: 32,316
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by ModDish View Post
have a zipped copy of the file of the server, and have the download link point to the zip file, and it will prompt to download.
Not necessarily, the end user may have set it so .zip files open automatically rather than prompt or download.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Code Samples | Crowded Nightclub? | Random Ramblings
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 07-28-2010, 01:24 PM Re: How to set link to prompt a download?
Super Talker

Posts: 116
Name: Patric
Trades: 0
Quote:
Originally Posted by ModDish View Post
have a zipped copy of the file of the server, and have the download link point to the zip file, and it will prompt to download.

This is a good idea. I might just stick with it... I highly doubt that anyone viewing my site would even know how to configure a .zip file to their browser.

Thanks for the responses guys.
Reckoner is offline
View Public Profile
 
Old 08-01-2010, 10:10 PM Re: How to set link to prompt a download?
Physicsguy's Avatar
Dividing by zero

Posts: 367
Name: Scott
Location: Ontario
Trades: 0
PHP can do just that!

http://php.net/manual/en/function.header.php

Check that out, and before you go posting in the PHP section that it doesn't work, make sure that you don't have ANY OUTPUT before the header() declaration!
__________________
ReviewCraft - Minecraft Server Review | MyWebForums
Code:
Warning: Division by zero
Physicsguy is offline
View Public Profile Visit Physicsguy's homepage!
 
Closed Thread     « Reply to How to set link to prompt a download?
 

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14169 seconds with 13 queries