Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

<cfdocument> in a frameset....

Posted on 2009-05-08
3
Medium Priority
?
273 Views
Last Modified: 2013-12-24
Has anyone been able to get the cfdocument tag to open in a frameset?  See below code for example...

The terms_pdf.cfm was to open a pdf.  The page works fine, until I drop it into a frame and it fails.

If this isn't going to work anyone else have a suggestion how to display this? Can only the pdf be displayed?
<frameset col="30%,*">
<frame src="parmenu.cfm" />
<cfif session.type eq 't' >
<frame src="terms_pdf.cfm" />
<cfelseif session.type eq 'a'>
<frame src="account_pdf.cfm" />
</cfif> 
 
 
 
</frameset>

Open in new window

0
Comment
Question by:NYGiantsFan
  • 2
3 Comments
 
LVL 4

Expert Comment

by:galadore
ID: 24344893
Have you tried iframes?  You should be able to display HTML as well as your PDF.  I haven't tested that recently, but I recall building a PDF viewer a while back and we used iframes to do the job.
0
 

Author Comment

by:NYGiantsFan
ID: 24354016
sorry, I am not that familiar with iframes.  
0
 
LVL 4

Accepted Solution

by:
galadore earned 2000 total points
ID: 24354178
Just a regular HTML page and add:

<cfif session.type eq 't' >
<iframe src="terms_pdf.cfm" />
<cfelseif session.type eq 'a'>
<iframe src="account_pdf.cfm" />
</cfif>

Try it and see if it works.  You may have to define the size and style of the iframe to get what you want.
Here's more info about iframes:
http://www.w3schools.com/TAGS/tag_iframe.asp
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question