Announcement

Collapse
No announcement yet.

Adding a PDF to a fragment.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding a PDF to a fragment.

    Hello

    Im trying to add a file to a fragment, and have been around the forum trying to resolve the issue using the advise that has been posted.

    you can see here where i have tried to add the file:

    http://www.horsepoosaddlery.co.uk/ac.../Pet_Care.html
    (its te pretty pretty please pdf link - i thought if i asked nicely it might work for me!)

    all i get is the false page.

    From the advise previously posted ive added the file to my 'additional files' and this has got me one step further (yaaay) but still not far enough.

    in the url for the link i have

    javascript:ShowPopUp('HPS_Letterhead.pdf', 500, 600);

    and the fragment is text only?

    if someone could help me find out why all i get is a 'false' screen i would be very grateful.

    I have read many many posts within this forum, but havent been able to resolve the issues.

    i just want a pdf to popup so that people can print it if they want the information. (my blank letterhead was just a document)
    Lorna
    www.horsepoosaddlery.co.uk - for everything equestrian

    #2
    Did you try this? - http://community.actinic.com/showthread.php?t=49955

    Comment


      #3
      Another tweak that seems to work is changing

      href="javascript:ShowPopUp(

      to

      href="#" onclick="return ShowPopUp(

      i dont have that in my link to change it over, but ive added it in any way and this is what i get now:

      http://www.horsepoosaddlery.co.uk/acatalog/href=

      oops think link appears broken??
      Lorna
      www.horsepoosaddlery.co.uk - for everything equestrian

      Comment


        #4
        Well it clearly works as you can see from a happy user this morning, so you're doing something wrong i expect, therefore show us your code.

        Comment


          #5
          this is the url ive added for the first one

          javascript:ShowPopUp('HPS_Letterhead.pdf', 500, 600);

          and for the second

          href="#"onclick=2return ShowPopUp('HPS_Letterhead.pdf', 500, 600);

          maybe the files arent in the right place?

          ive got them in 'additional files' as per droundings suggestion.

          Ive had a look on the design tab, but i dont know where im looking for the 'code' it all looks like layout stuff from set up to me.
          Lorna
          www.horsepoosaddlery.co.uk - for everything equestrian

          Comment


            #6
            Copy the whole fragment text into a post so we can see what you have.

            Comment


              #7
              What Norman recommended and what you have typed is slightly different:
              Norman's:
              href="#" onclick="return ShowPopUp(
              Yours:
              href="#"onclick=2return ShowPopUp(

              Note the spaces and the quotes.

              Comment


                #8
                We need to see all the code you have added into your fragment, nothing to with the design tab, its code you are adding, therefore show us what you have added.

                Comment


                  #9
                  ok, the fragment goes:

                  Under General:



                  Fragment Title: test fragment - this is where the pdf should be
                  Text:
                  [link]

                  Under Link:

                  Link (is checked)

                  Link text: Original link text

                  Url: javascript:ShowPopUp('HPS_Letterhead.pdf', 500, 600);

                  layout is text only

                  i dont know how to get the code for the fragment
                  Lorna
                  www.horsepoosaddlery.co.uk - for everything equestrian

                  Comment


                    #10
                    After changing the space and quotes i now get a pop up window but the link is still broken.
                    Lorna
                    www.horsepoosaddlery.co.uk - for everything equestrian

                    Comment


                      #11
                      Why not just take the easy route and have the pdf open in a new window without javascript.

                      Instead of the LINK, in the fragment text you can use the following:
                      Code:
                      !!<
                      
                      <a href="HPS_Letterhead.pdf" target="_blank">Click to open my PDF</a>
                      
                      >!!

                      Comment


                        #12
                        Perfect, only it still wont work:


                        Oops! This link appears to be broken.
                        Suggestions:
                        Go to www.horsepoosaddlery.co.uk
                        Search www.horsepoosaddlery.co.uk for catalog HPS Letterhead
                        Search on Google:



                        its me, i know its me!!!! im doomed!!
                        Lorna
                        www.horsepoosaddlery.co.uk - for everything equestrian

                        Comment


                          #13
                          The pdf is not uploaded to the server. Are you sure you have added it to the Additional Files List in Actinic?

                          Comment


                            #14
                            Design - additional files - there are two in there

                            Images\LD.pdf
                            Site1\HPS_Letterhead.pdf



                            is that right?
                            Lorna
                            www.horsepoosaddlery.co.uk - for everything equestrian

                            Comment


                              #15
                              Why is it 'Site1\HPS_Letterhead.pdf' and not just 'HPS_Letterhead.pdf' in the Additional Files List? Is this what you see in the small window when you look at the Additional Files? Post a screen grab if that's the case.

                              Comment

                              Working...
                              X