Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

<cfdocument> in a frameset....

Posted on 2009-05-08
3
Medium Priority
?
267 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 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
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…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

721 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