Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
wkbia #1
cfcontent in IE 6 not working
The example below works fine in Firefox however in IE 6 sp2, it does not. HTML
is displayed always with what ever type is set. No matter what type I try to
open using <cfcontent file=... type=... (pdf, xsl, doc, etc...) html is still
displayed but works in other browsers. Can someone tell me what's up with IE
and how to correct. Note cfset to display no debugging. See second example for
another example.
The cm.html file:
<h1>cfcontent_message.htm</h1>
<p>This is a <em>test message</em> written in HTML.</p>
<p>This is the <em>second paragraph</em> of the test message.
As you might expect, it is also written in HTML.</p>
------------------------------
The cc.cfm test file.
<html>
<head>
<title>cfcontent Example</title>
</head>
<body>
<h3>cfcontent Example</h3>
<cfcontent
type = "text/plain"
file = "c:\inetpub\wwwroot\test\cm.htm"
deleteFile = "No">
</body>
</html>
-----------------------
Example 2:
<cfset theServerPath="c:\whereever\">
<cfset theFile="whatever.xls">
<cfset mimeType="application/msexcel"> //Note, tried various types:
vnd.ms-excel, etc...
<cfsetting enablecfoutputonly="No">
<cfsetting showdebugoutput="No">
<cfheader name="Content-Disposition" value="filename=#theFile#"> //Note:
inline; attachment, etc no help either
<cfcontent file="#theServer##theFile#" type="#mimeType#">
wkbia Guest
-
FLV and cfcontent
I've been attempting to use cfcontent to supply an FLV file to a flash application. I can't seem to get it to work. Does anyone have an example of... -
cfcontent - help please
Hi In my database there is a field which has links to articles #productdescription#- these articles have been saved as simple text. When a user... -
CFCONTENT
Hello, Is it possible to use <CFCONTENT> within a frame or table layout? seems when I run my code (which is a pop up window), the <cfcontent>... -
why use cfcontent?
Why would one use cfcontent insead of of using cfheader? Sorry if this eems like a daft question but they seem to be the same thing to me. -
CFCONTENT and SSL
I've read several online forums concerning the CFCONTENT - PDF problem but haven't seen anything similar to the problem I'm having... I'm... -
sdupre #2
Re: cfcontent in IE 6 not working
Are you using ColdFusion Standalone or MultiServer?
What version of JRun are you using with this (whatever the built-in version is or updater 6?)
Stephen Dupre
Macromedia QA
sdupre Guest
-
ThirdLion #3
Re: cfcontent in IE 6 not working
I am having the same sort of problem. I have got MX 7.0.1 running on a windows
platform. when i say to open from the open/save link the pdf document is
downloaded, and then opens pdf viewer, and it then says "can't open the file as
it can't be found"
this is the code that i am using:
<cfset FileDeliver =
ExpandPath('dmDocuments/subject#qryFile.SubjectUUID#/#qryFile.SystemFileName#')>
<cfheader name="Content-Type" value="Unknown">
<cfheader name="Cache-Control" value="private">
<cfheader name="Content-Disposition"
value="Attachment;Filename=#qryFile.OriginalFileNa me#">
<cfcontent type="Application/Unknown" file="#FileDeliver#" deletefile="No">
any ideas?
Tony
ThirdLion Guest



Reply With Quote

