iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2007, 08:00 AM
WebProWorld New Member
 
Join Date: Jul 2007
Posts: 21
Attila001122 RepRank 0
Default Download code

Hello,

I need to offer some pdf download options on my site.
Pointing to the .pdf file only opens it.

I would like a "download" button with the options where to download the file instead of opening it.
Is there a HTML code for that?
Can anyone help?

Thanks

Attila
Reply With Quote
  #2 (permalink)  
Old 12-10-2007, 11:31 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,657
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: Download code

The best, most reliable way to force the browser to download a PDF is to zip the file.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #3 (permalink)  
Old 12-10-2007, 11:47 AM
WebProWorld New Member
 
Join Date: Jul 2007
Posts: 21
Attila001122 RepRank 0
Default Re: Download code

Thanks for the idea...

I am not any good on Java or PHP.... and was hoping that there is something useful exists in HTML...
Maybe I have to stick to the zip idea, but originally I preferred something more "professional"...

Anyway, thanks !

Unless someone else don't comes up with something better, this going to be way !

Regards
Attila
Reply With Quote
  #4 (permalink)  
Old 12-10-2007, 12:29 PM
Dubbya's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,300
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
Default Re: Download code

Wige is right on the money.

You can't force a download in HTML because the browser interprets the file content as being "openable".

You CAN force a download if your server will run .asp, .jsp or another language.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic code in source code Milo Google Discussion Forum 4 07-02-2007 08:25 AM
download.com best practices Brand Digital Marketing Strategies Discussion Forum 3 06-21-2005 06:34 PM
pop up and download blockers pagetta Graphics & Design Discussion Forum 2 04-10-2005 02:00 PM
code to tell me of download FROGGYJ Web Programming Discussion Forum 5 03-28-2004 01:06 AM
webproworld download brettgodfrey WebProWorld: Guidelines/Announcements/Suggestions 1 01-05-2004 12:02 PM


All times are GMT -4. The time now is 05:37 AM.



Search Engine Optimization by vBSEO 3.3.0