To SMR from "arehart". :-)

It sounds like you have other HTML content being generated on the page, either 
above the CFCONTENT or perhaps in the application.cfm or onrequestend.cfm. In 
the case of HTML being created beforehand, add reset="yes" to the CFCONTENT. 
That will throw away any created to that point. And on the chance that you have 
output being created in an onrequestend.cfm, drop a CFABORT in after the 
CFINCLUDE.

I should say, as well, that rather than use a CFINCLUDE, you can also name the 
file in the CFCONTENT itself. The article you read was just talking about 
various tricks with CFINCLUDE. There are always many ways to do something.

/charlie

>I'm using this code to have CF open a pdf within a <td> tag on a cf page.
> 
><cfcontent type="application/pdf">
><cfinclude template="mypdf.pdf">
> 
>According to an article I found by arehart, this is supposed to work, all I
>get is a page up with my logo/menu at the top and the remainder is white. If
>I highlight the white area I see the ascii text that shows the pdf file is
>there just shows up as ASCII
> 
>anyone ever used this or something else to get the pdf to open in a webpage?
>I'm using this so I can still have the look and feel of the rest of the
>website and not use a pop up window or something similar.  This was just
>tried on MX 7. I haven't tried any other version yet so I don't know if that
>is the problem or not.
> 
>Thanks
>
>-- 
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 8/25/2006

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:215107
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5

Reply via email to