|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
pdf downloads
What script do I add into my page HTML to enable download of a pdf file by users clicking on a button on the webpage?
|
|
#2
|
||||
|
||||
|
One example using javascript: http://javascript.internet.com/buttons/button-link.html
Example 2: Code:
<FORM METHOD="LINK" ACTION="document.pdf"> <INPUT TYPE="submit" VALUE="Clickable Button"> </FORM> If you want to force the PDF to download instead of opening in browser window(depends on users settings), you have to play around with headers HTH
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
There is another thread with a similar problem except the file format was a Word doc. I'll make the same suggestion though, zip the file.
If you are referring to the specific problem of pdf's displaying in the browser, you'll need to check Acrobat's/Reader's option settings. One of them says something along the lines of "Display pdf in browser". Turn it off. |
|
#4
|
|||
|
|||
|
very easy
Option 1:
Insert a form and a button. before the button write a text like "click on this link to view the pdf files" select the button and from behavior panel select open browser window and select the pdf file. the pdf file also has 2 b saved inside ur root folder, tha's all if ur using dreamweaver... option 2 : plain coding <form name="form1" method="post" action=""> click on the button to view the pdf document <input name="Submit" type="submit" onClick="MM_openBrWindow('Installing_apache_mysql_php_win98.pdf','','')" value="Submit"> </form> check both the option is easy and it will work... Last edited by tempest : May 25th, 2004 at 04:35 AM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > pdf downloads |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|