Html Code Needed To Upload PDF??

by r3000
3 replies
  • WEB DESIGN
  • |
Hi All,

This may be a silly question, but here goes:

I'd like to include a link to a .pdf in an autoresponder series of mine. I've uploaded the .pdf to the server under the site in question using FileZilla.

I'd like the link to look like: mysite.com/myreport.pdf

I've created a page on my site with an "a href" pointing to the pdf and uploaded it to the server as well.??

I can't get the link to make the .pdf pop-up upon clicking (shows 404 error). Only thing I can figure is that i'm missing some HTML code to make this happen, or I've somehow got the pdf uploaded incorrectly (I've uploaded it under "mysite" which is under public_html)

Am I missing a step? Can anyone tell me where I'm off track?

Any help is greatly appreciated!

Thanks!

~Rob
#code #html #needed #pdf #upload
  • Profile picture of the author da1fitz
    Rob

    Add mysite.com/myreport.html to your responder.

    Add the below code into myreport.html including the full link to your PDF and you should get the desired effect though beware popup blockers .


    <html>
    <title>Your PDF</title>
    <head>
    <script language="JavaScript">
    <!--
    function open_PDF()
    {

    var new_window = window.open('mysite.com/yourpdf.pdf','yourPDF', ' menubar,resizable,dependent,status,width=400,heigh t=600,left=10,top=10')
    }
    // -->
    </script>
    </head>

    <body onload="open_PDF()">

    </body>
    </html>
    {{ DiscussionBoard.errors[738489].message }}
    • Profile picture of the author Success2020
      Originally Posted by da1fitz View Post

      Rob

      Add mysite.com/myreport.html to your responder.

      Add the below code into myreport.html including the full link to your PDF and you should get the desired effect though beware popup blockers .


      <html>
      <title>Your PDF</title>
      <head>
      <script language="JavaScript">
      <!--
      function open_PDF()
      {

      var new_window = window.open('mysite.com/yourpdf.pdf','yourPDF', ' menubar,resizable,dependent,status,width=400,heigh t=600,left=10,top=10')
      }
      // -->
      </script>
      </head>

      <body onload="open_PDF()">

      </body>
      </html>

      Thanks for the post.... am also having thesame problem in my site am going to try it out and the result..
      {{ DiscussionBoard.errors[738716].message }}
      • Profile picture of the author RedMatrix
        If you uploaded the PDF to yoursite.com/downloads/, for example, and the name of your file is file.pdf, then this is how the html should look like on your page, or email.

        HTML Code:
        <a href="http://yoursite.com/downloads/file.pdf" target="_blank">FileName</a>
        You can but any thing you want for FileName. You can also
        just leave it as plain text on your autoresponder:

        http://yoursite.com/downloads/file.pdf

        You can even make it look like this: yoursite.com/file.pdf

        HTML Code:
        <a href="http://yoursite.com/downloads/file.pdf" target="_blank">YourSite.com/file.pdf</a>
        Signature

        ~Dave

        {{ DiscussionBoard.errors[744782].message }}

Trending Topics