Solved

<cfdocument> in a frameset....

Posted on 2009-05-08
3
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

617 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