[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 07-05-2006, 09:42 PM   #1 (permalink)
New Member
 
Join Date: Jul 2006
Posts: 2
0.00 NP$ (Donate)

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-05-2006, 11:05 PM   #2 (permalink)
NamePros Regular
 
Join Date: Feb 2006
Posts: 276
34.25 NP$ (Donate)

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, 03:44 AM   #3 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 08:38 AM   #4 (permalink)
New Member
 
Join Date: Jul 2006
Posts: 2
0.00 NP$ (Donate)

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

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 On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 10:55 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85