#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    24
    Rep Power
    0

    Show Embedded Document when pressing link


    I have the following:

    <p>Link</p>

    <script>
    $("p").click(function () {
    $(this).showembed();
    });
    </script>


    Now, how can I do to tell when I press "Link" show the following document. "document.pdf"

    Something like:

    <p (\document.pdf)>Link</p>

    <script>
    var document
    $("p").click(function () {
    $(this).showembed(document,);
    });
    </script>

    So when I press the "Link" the document.pdf shows embed

    Thanks so much
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,041
    Rep Power
    119
    Do an online search for "embed pdf in html" and that should give you several ideas; on how to do this.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    24
    Rep Power
    0
    I know how to embed a pdf document I need to know how to show the document only if a link <a href>Link</a> if pressed.

    thanks again for your help

IMN logo majestic logo threadwatch logo seochat tools logo