Solved

<cfdocument> in a frameset....

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

746 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now