• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

Linking from .pdf file that is within an iframe page.

I have a web page from which I link to ebooks for sale.  The web page is http://www.4loveofdogs.com/ebooks/.  If you go to that page and click on the link for Easy Dog Tricks, it'll take you to http://www.4loveofdogs.com/ebooks/easy-dog-tricks-11.pdf, which is a .pdf document loaded in an iframe.  (It's a .pdf in an iframe because Google's AdWords won't allow me to link an AdWords ad directly to a .pdf -- it has to link to a .html or .php address.)  At the very end of that .pdf document is a monetization link to another page, where they can click to buy the rest of the document.  That link works fine when the .pdf is NOT within an iframe;  doesn't work at all from within the iframe.

Can you puhleeeeeeeeze tell me what code I need to put in that link (and the eventual links for all the other ebooks I will be wanting to sell) so that folks can link to the buy-page.  I'd prefer that clicking the link open the buy page in the same frame (i.e., _blank);  but I can accept it if it's necessary to open a new page/tab for the buy-page.

Thanks.


Bill Johnson
0
billinshermanoaks
Asked:
billinshermanoaks
  • 5
  • 4
1 Solution
 
Richard QuadlingSenior Software DeverloperCommented:
I don't get an iframe at all. Instead I get a full page Adobe Reader plugin activated.

The links ...

<p><a href="http://www.4loveofdogs.com/ebooks/stopping-dog-aggression-13.pdf">Stopping Dog Aggression -- 12/20/09</a></p>
<p><a href="http://www.4loveofdogs.com/ebooks/living-with-a-blind-dog-11.pdf">Living With A Blind Dog -- 12/14/09</a></p>
<p><a href="http://www.4loveofdogs.com/ebooks/puppy-training-made-easy-14.pdf">Puppy Training Made Easy -- 12/10/2009</a></p>
<p><a href="http://www.4loveofdogs.com/ebooks/hereditary-diseases-in-dogs-12.pdf">Hereditary Diseases in Dogs -- 12/04/2009</a></p>
<p><a href="http://www.4loveofdogs.com/ebooks/stop-puppy-biting-14.pdf">Stop Puppy Biting -- 05/25/2009</a></p>
<p><a href="http://www.4loveofdogs.com/ebooks/taking-your-dog-on-vacation-16.pdf">Taking Your Dog on Vacation --05/25/2009</a></p>
<p><a href="http://www.4loveofdogs.com/ebooks/easy-dog-tricks-11.pdf">Easy Dog Tricks -- 05/24/2009</a></p>

are all straight links. Not linked to an iframe.

0
 
billinshermanoaksAuthor Commented:
You're right.  I apologize for the confusion, as I had not updated the link from http://www.4loveofdogs.com/ebooks/index.php.  That link was still going to the .pdf file.  It now goes to http://www.4loveofdogs.com/ebooks/easy-dog-tricks/index.pdf , where the iframe code then encompasses the .pdf.  The explicit URLs on the cover of the book work.  The link on the final page (with the text about click-here-to-buy) doesn't work.  It's this link I'm hoping you can tell me how to fix (I want someone clicking on that link to be taken to http://www.4loveofdogs.com/purchase/easy-dog-tricks-buy-link.php.  I could, apparently, have text that says something like, "To buy the balance of this book, click the link below," and then have an explicit, visible link to http://www.4loveofdogs.com/purchase/easy-dog-tricks-buy-link.php.  I'd prefer something more elegant if at all possible, though.  Thanks.


Bill
0
 
Richard QuadlingSenior Software DeverloperCommented:
The PDFs are different, so you must be generating them differently depending upon the source location in some way.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Richard QuadlingSenior Software DeverloperCommented:
If I open http://www.4loveofdogs.com/ebooks/easy-dog-tricks/easy-dog-tricks-11.pdf, I see 2 links on the title page (working) and the buy link doesn't.

But http://www.4loveofdogs.com/ebooks/easy-dog-tricks-11.pdf has 1 link on the front page and a working link.

Basically, you've got 2 different PDFs in different locations.

http://www.4loveofdogs.com/ebooks/easy-dog-tricks/easy-dog-tricks-11.pdf
http://www.4loveofdogs.com/ebooks/easy-dog-tricks-11.pdf


0
 
billinshermanoaksAuthor Commented:
This is a work in progress.  I know there are differing copies of the .pdf at this time.  The version I am specifically asking about is the .pdf contained within the iframe.  The .pdf accessed through http://www.4loveofdogs.com/ebooks/easy-dog-tricks/.  All the other versions work.  But what I need in order to satisfy Google AdWords is one that works within the iframe.  It doesn't matter about all the other .pdfs that work.  Those are not the question.  

The question is, from within the iframed .pdf, how do I have a link-with-txt that will go to the buy-link page.

Thanks.


Bill
0
 
Richard QuadlingSenior Software DeverloperCommented:
It has nothing to do with the iframe.

You've got a PDF where the link works (iframe or otherwise)

You've got a PDF where the link does not work (iframe or otherwise).

Just use the right PDF file.

The right PDF file is http://www.4loveofdogs.com/ebooks/easy-dog-tricks-11.pdf

Move this to http://www.4loveofdogs.com/ebooks/easy-dog-tricks/easy-dog-tricks-11.pdf and you've got it all working.

0
 
billinshermanoaksAuthor Commented:
OK.  Thanks.  I do very much appreciate being straightened out on this.
0
 
billinshermanoaksAuthor Commented:
RQuadling swiftly & efficiently diagnosed the problem and eventually (due to my own ignorance) managed to explain the solution in a way that even I could understand.
0
 
Richard QuadlingSenior Software DeverloperCommented:
Glad to have helped.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now