NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page HTML code for doing downloading files

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-05-2006, 10:42 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jul 2006
Posts: 2
Stephen Willard is an unknown quantity at this point
 



HTML code for doing downloading files


I am trying to install code that would allow my viewers the ability to download National Geographic map files of different hiking routes I have made, but I have not had any success. Here is the code I am using:

<A HREF = "/gallery/maps/images/NS-TP-05/map.tpo">
<IMG SRC = "/buttons/download.jpg" BORDER = "0"></A>

My expectation is this code/browser would use my download facility on my system to copy the file map.tpo to my desktop. Instead, the contents of the binary file is copied into a new browser window which is not the expected behavior for downloading. I got this code from another website that supports downloading these kinds of files and everything worked just fine.

Can any one tell me what I am doing wrong?
Stephen Willard is offline  
Old 07-06-2006, 12:05 AM   #2 (permalink)
NamePros Regular
Join Date: Feb 2006
Posts: 276
xeno439 is a jewel in the roughxeno439 is a jewel in the roughxeno439 is a jewel in the rough
 



zip em and everything will be fine
xeno439 is offline  
Old 07-06-2006, 04:44 AM   #3 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Put this code in your .htaccess:

AddType application/octet-stream tpo
Dan is offline  
Old 07-06-2006, 09:38 AM THREAD STARTER               #4 (permalink)
New Member
Join Date: Jul 2006
Posts: 2
Stephen Willard is an unknown quantity at this point
 



xeno439. I tried your zip approach and it worked perfectly. Dan I intend to give your solution a try as well, but I have to investigate what a .htaccess is.

Thanks to the both of you for your commets.

-Stephen Willard
Stephen Willard is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:50 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger