Welcome to Geeklog, Anonymous Saturday, July 02 2022 @ 04:02 am EDT

Geeklog Forums

Opening PDF file in centerblock


Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
I want a user to be able to open up a PDF file on the right 2/3 of screen when they click on a link in a story.

I need to use PDF since the documents are intended to be printed and put in a workbook.

I know how to have Adobe Reader open up full screen on a clicked link, but don't know how to make it play nice with GL.

All help appreciated!

Blessings!

inSPIREmin
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Rob

Anonymous
Try making a static page/centerblock that uses an iframe to the intended pdf. Thats really the only way I can think of getting it done.

-Rob
 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
excited
Thanks Anonymous Rob, whoever you are! Big Grin

I used a static page with an iFrame. After tinkering with the attributes, I got it to work. I just wish that I could make the length of the Acrobat Reader automatically adjust to the length of the browser window.

Oh, well. I'll just be happy with what I have done so far.

Blessings!

inSPIREmin
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

auspexian

Anonymous
Can you post your IFRAME tag. I have been experiment with Iframe and couldn't get the right numbers to make it look nice.

Tks
John
 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
Here is the code I put in a static page:

Text Formatted Code

<IFRAME SRC="http://www.yourgeeklogsite/staticpage" WIDTH=100%
HEIGHT=500 FRAMEBORDER=0 SCROLLING=0 TITLE="titleblock">
<!-- Alternate content for non-supporting browsers -->
<H2>Your browser does not support this page</H2>
</IFRAME>
 


Hope this helps!

inSPIREmin
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
I think that is a problem with Iframe, I do not think you can set the length dynamically, I've tried many times and can't find any article that says otherwise. So if someone knows how to do it that would be a great leap.

What about doing a PHP include?
 Quote

All times are EDT. The time is now 04:02 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content