Reply LinkBack Thread Tools Search this Thread
Old 23-05-2008, 14:01   #1 (permalink)
SageMusic
Registered User
 
Join Date: May 2008
Location: Silicon Valley, California, USA
Posts: 5
How to make download button that displays open/save dialog?

Hi!

I want to know how to create a button/link that makes a File Download dialog pop up that has the Open/Save/Cancel buttons on it.

I want to provide the option to download an MP3, instead of playing it. (I already have started adding options on my site to play MP3s via a flash player.)

It would be great if it is something that works on either PC or MAC and generally in various browsers.

Thanks!
Sage
  Reply With Quote
Old 23-05-2008, 14:09   #2 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
You can do this with a server side language, and as a result it's browser and platform independent. Google 'force download script'. Add tutorial if necessary.
__________________
This space for rent.

Dads Japan
Dudes Japan
  Reply With Quote
Old 23-05-2008, 14:21   #3 (permalink)
SageMusic
Registered User
 
Join Date: May 2008
Location: Silicon Valley, California, USA
Posts: 5
Thanks, Haku, for the reply.

Where do I find details of how to set up a server side language arrangement and where do I get the actual Google 'force download script' ?

Sage
  Reply With Quote
Old 23-05-2008, 14:27   #4 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
__________________
This space for rent.

Dads Japan
Dudes Japan
  Reply With Quote
Old 23-05-2008, 14:46   #5 (permalink)
pagey
Resident Cheese Expert
 
pagey's Avatar
 
Join Date: Aug 2006
Location: South Wales
Posts: 747
Surely all you need to do is provide a simple <a href="...> link to the file and make sure that file is in the root directory.

You can replace the link with a button image pretty easily too. No server side scripting required!
  Reply With Quote
Old 23-05-2008, 14:49   #6 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
Anchor tags open mp3s in the browser - or at least they do if the user has quicktime installed. I'm not sure what happens when the user doesn't.
__________________
This space for rent.

Dads Japan
Dudes Japan
  Reply With Quote
Old 23-05-2008, 14:53   #7 (permalink)
SageMusic
Registered User
 
Join Date: May 2008
Location: Silicon Valley, California, USA
Posts: 5
When you click an href= for an MP3 it opens your music player, or tries to play it in your browser (depending on your settings) it doesn't open a download/save dialog.
  Reply With Quote
Old 23-05-2008, 14:59   #8 (permalink)
pagey
Resident Cheese Expert
 
pagey's Avatar
 
Join Date: Aug 2006
Location: South Wales
Posts: 747
"I stand corrected" said the ma with orthopaedic shoes.
  Reply With Quote
Old 23-05-2008, 15:01   #9 (permalink)
pagey
Resident Cheese Expert
 
pagey's Avatar
 
Join Date: Aug 2006
Location: South Wales
Posts: 747
You could always zip up the mp3 files and have the user download the zip files. Not perfect, but would perform what you're after...
  Reply With Quote
Old 23-05-2008, 15:05   #10 (permalink)
SageMusic
Registered User
 
Join Date: May 2008
Location: Silicon Valley, California, USA
Posts: 5
I've been digging around searching for the Google 'force download script' but I'm not having any luck. Any tips more specifically on where/how to look?

Sage
  Reply With Quote
Old 23-05-2008, 15:17   #11 (permalink)
pagey
Resident Cheese Expert
 
pagey's Avatar
 
Join Date: Aug 2006
Location: South Wales
Posts: 747
Just googled....Try these links:

1
2
3
4

The answer must be in one of these for sure!
  Reply With Quote
Old 23-05-2008, 15:36   #12 (permalink)
SageMusic
Registered User
 
Join Date: May 2008
Location: Silicon Valley, California, USA
Posts: 5
Thanks Pagey!!

Lots of food for thought in those pages.

Sage
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8