Solved

<cfdocument> in a frameset....

Posted on 2009-05-08
3
260 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 500 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wrapper for APPs 9 76
Excel Hyperlink Question 4 48
maps stopped work unsure why 7 34
Grunt script for Build Process 1 29
Read about why website design really matters in today's demanding market.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

773 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