: Kevin Penny [mailto:[EMAIL PROTECTED]
Sent: 21 July 2005 19:33
To: CF-Talk
Subject: RE: cfcontent - for an excel file
I don't believe there is a way to
create separate worksheets w/in the Document nor specify alternate worksheet
names.
I've looked into this before - and that was the conclusion
Elder [mailto:[EMAIL PROTECTED]
Sent: 21 July 2005 20:13
To: CF-Talk
Subject: Re: cfcontent - for an excel file
Best way to do this is create the excel file and save as html. Then
use that source.
This is what you need:
!--[if gte mso 9]xml
x:ExcelWorkbook
x:ExcelWorksheets
There is a way to name and create individual reports - you have to use POI
from Apache. If you are on CFMX 6.1 you need to download it, but if you are
on CFMX 7 then you can use POI straight out of the box!
http://jakarta.apache.org/poi/index.html
Do not go down the HTML route
also want this CF template to generate a simple robots.txt file for the
old web sites so that they're eventually removed from external search
engines. The easiest way to do this seems to be with the CFCONTENT tag to
serve up a text file.
cfcontent type=text/plain file=#ExpandPath('.')#\r.txt
I'm creating a dynamic excel file using:
cfheader name=Content-Disposition value=attachment; filename=blah.xls
cfcontent type=application/msexcel
I have only one worksheet. Is there a way to specify the name the
worksheet or will the worksheet always match the filename?
Thanks,
- JR
-Original Message-
From: Jill Robin Pascua [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 21, 2005 1:22 PM
To: CF-Talk
Subject: cfcontent - for an excel file
I'm creating a dynamic excel file using:
cfheader name=Content-Disposition value=attachment; filename=blah.xls
cfcontent type
/x:SheetIndex
x:Formula='Sheet 1'!$1:$5/x:Formula
/x:ExcelName
/xml
![endif]--
-JE
On 7/21/05, Jill Robin Pascua wrote:
I'm creating a dynamic excel file using:
cfheader name=Content-Disposition value=attachment; filename=blah.xls
cfcontent type=application/msexcel
I have only one worksheet
Hi All,
I am trying to password protect video files and of course I am looking
at the ol' reliables like the CFCONTENT tag and .htaccess files.
..htaccess isn't ideal because I want to put the video files in different
directories and I don't want to manage a bunch of .htaccess files
: http://www.grida.no
-
| -Original Message-
| From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, May 17, 2005 22:12
| To: CF-Talk
| Subject: Re: cfcontent vs cflocation
|
| Yep... I'd have never
-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 4:53 PM
To: CF-Talk
Subject: RE: cfcontent vs cflocation
Hugo Ahlenius wrote:
Related to the IE hack thread:
When you do the little trick and refer to a cfm template in an img
tag
Yep... I'd have never thought to try that. Interesting suggestion.
That said, it will only work with images within the purview of a
webserver... and I've been messing around with this a bit. Maybe this has
worked this way forever, but this saves a LOT of typing:
cfcontent type=image/png file=d
Related to the IE hack thread:
When you do the little trick and refer to a cfm template in an img tag
(for instance) to enable some logic processing (or rendering of a
dynamic image) -- wouldn't it make much more sense to do a cflocation
after the dynamic rendering? (as long as you don't need to
puzzled
Hugo... ummm...
CFLOCATION to where? CFLOCATION does a client-side redirect via headers
(similar to a meta redirect).
CFCONTENT sets the mime type of the content stream that gets returned to the
browser (hence making a CFM template look like a JPG or a PDF).
Perhaps I'm missing
I think what he's asking is if you can do your processing in the cfm
that you want but instead of serving up the images using cfcontent, do
a cflocation to an image. That wouldn't hide the url of the image
and I'm not 100% sure how it would all work, but it seems like it may do
the trick. Not sure
Hugo Ahlenius wrote:
Related to the IE hack thread:
When you do the little trick and refer to a cfm template in an img tag
(for instance) to enable some logic processing (or rendering of a
dynamic image) -- wouldn't it make much more sense to do a cflocation
after the dynamic rendering? (as
Hugo Ahlenius wrote:
Related to the IE hack thread:
When you do the little trick and refer to a cfm template in an img
tag (for instance) to enable some logic processing (or rendering of a
dynamic image) -- wouldn't it make much more sense to do a cflocation
after the dynamic rendering?
tool, ArcIMS/mapserver, captcha etc) are dropped in a web-accessible directory,
you should do a cflocation rather than a cfcontent output.
That way you can do whatever processing you want before, and hand over the work
to the web-server (doing what it does best - serving static content
4:34 PM
To: CF-Talk
Subject: RE: cfcontent vs cflocation
Sorry for not being more clear here, and it was not really a question, I
basically wanted to check if there were any major objections to it.
For cases when you have the image lying in a web-accessible directory
(could also be on another
Hey folks -
Got a stumper here (at least on my end).
In my main project, I've got a page that is basically a DB table
exporter - user specifies what fields, some filtering options, etc. The
system then creates a text file, and then pushes the page over to a page
with cfheader/cfcontent
, some filtering options, etc. The
system then creates a text file, and then pushes the page over to a page
with cfheader/cfcontent, to pop the file-placement window prompt on the
user's machine.
Works fine in Mozilla - but in IE (6, at least), whenever the prompt
window pops up, and you choose
We've noticed this problem and can replicate it easily on our dev
servers.
Running CF 6.1 on Solaris 8
We're serving PDF using CFCONTENT with the following code:
cfcontent file=somereaderfile.pdf reset=yes type=application/pdf
The document comes up fine on the browser. But if you hit
On some windows machines it gives the user the option to save or open, on
others it opens up in the default application immediatley ( ie, word. Opens
open in a word like interface within the browser ).
How can I force to have the default being ( open, save, cancel ) dialog box
appear every
Set the MIME type to unknown
Protoculture wrote:
On some windows machines it gives the user the option to save or open, on
others it opens up in the default application immediatley ( ie, word. Opens
open in a word like interface within the browser ).
How can I force to have the default being
I did that... but the only thing is now its saving whats supposed to be a word
doc... as the name of the current template( ie. 'current_template.cfm' as
opposed to 'myfile.doc'.
cfcontent file=E:\hosting\oursite\ourfiles\myfile.doc
type=unknown
reset
cfheader name=Content-Disposition value=attachment;
filename=myfile.doc
cfcontent type=application/unknown
file=E:\hosting\oursite\ourfiles\myfile.doc deletefile=No
Pascal
-Original Message-
From: Protoculture [mailto:[EMAIL PROTECTED]
Sent: 07 March 2005 10:49
To: CF-Talk
Subject
That did it! Cheers!
cfheader name=Content-Disposition value=attachment;
filename=myfile.doc
cfcontent type=application/unknown
file=E:\hosting\oursite\ourfiles\myfile.doc deletefile=No
Pascal
-Original Message-
From: Protoculture [mailto:[EMAIL PROTECTED]
Sent: 07 March 2005 10:49
Hi,
I remember hearing about this some time ago -- I have an application
that uses cfheader/cfcontent for downloads of some files (to send
headers with attachment etc) -- isn't there a way to avoid this taking
up a thread in CF -- to pass this to the webserver in some way?
I have a feeling
the page... what is a better approach to this to keep
the download prmpt while getting the underlying page to not bomb.
IIS 6
CFMX 6.1
IE 6
!--- serveDocument.cfm ---
cfheader
name=Content-Disposition
value=attachment; filename=#variables.doc#.#variables.ext#
cfcontent
file
affects the page... what is
a better approach to this to keep the download prmpt while
getting the underlying page to not bomb.
Once you use CFCONTENT to serve a file, that file is what will be sent to
the browser. If the user chooses to cancel the download, the browser is in
charge of figuring out
From: Dave Watts [mailto:[EMAIL PROTECTED]
Once you use CFCONTENT to serve a file, that file is what
will be sent to the browser. If the user chooses to cancel
the download, the browser is in charge of figuring out how to
present that information to the user.
How do others do it? Take
Has anyone seen this type of error with cfcontent before and what this
means:
Error Diagnostic Information
Context validation error in tag CFCONTENT
The tag is not correctly positioned relative to other tags in the
template: tag CFCONTENT must have empty content. This means that there
can
Has anyone seen this type of error with cfcontent before and what
this means:
Error Diagnostic Information
Context validation error in tag CFCONTENT
The tag is not correctly positioned relative to other tags in the
template: tag CFCONTENT must have empty content. This means
thanks Dave... it appears to be a CF version problem... its throws the error on
CF5
not CFMX
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 04:47 PM
To: 'CF-Talk'
Subject: RE: cfcontent error
Has anyone seen this type of error
thanks Dave... it appears to be a CF version problem... its
throws the error on CF5 not CFMX
While that may be true, the code as written doesn't appear to be correct on
either version.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber
Yes, I know... I removed the filename reference in the cfcontent tag and
its behaving
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 12:51 PM
To: CF-Talk
Subject: RE: cfcontent error
thanks Dave... it appears to be a CF version problem
Subject: REPOST: CFHEADER/CFCONTENT over SSL on IIS with IE
From: Dave Watts [EMAIL PROTECTED]
Date: Sun, 12 Dec 2004 19:48:18 -0500
Thread:
http://www.houseoffusion.com/cf_lists/index.cfm/method=messagesthreadid=37080forumid=4#187302
Perhaps there's a problem with the Content-Disposition header
ieHTTPheaders
http://www.blunck.info/iehttpheaders.html
I haven't tried it myself, but it's supposed to do what you want.
Here's one for Mozilla, in case you're interested:
http://livehttpheaders.mozdev.org/
I had to re-install Mozilla after using it.
Chris Norloff
-- Original Message
Can anyone recommend a good tool (either standalone or plugin for IE) that
will allow me to see the HTTP response headers for a particular request?
That way I could at least compare the headers generated for a regular
file download and then tweak my CFHEADER statement(s) to match. Thanks a
Hey guys,
I posted this on Friday, didn't get a response. Figured I'd try it again.
I have a simple text file that I want to force-download for users of a web
application. I've set up the following code:
cfheader
name=Content-Disposition
value=attachment; filename=#filename#
cfcontent
I have a simple text file that I want to force-download for
users of a web application. I've set up the following code:
cfheader
name=Content-Disposition
value=attachment; filename=#filename#
cfcontent
type=text/plain
file=#filepath#
deletefile=no
When I run the code
I have a simple text file that I want to force-download for users of a web
application. I've set up the following code:
cfheader
name=Content-Disposition
value=attachment; filename=#filename#
cfcontent
type=text/plain
file=#filepath#
deletefile=no
When I run the code in IE, I get
I'm using cfcontent to prevent hotlinking images and I'm suddenly having a
lot of emails with people using Norton firewall getting blocked from viewing
images.
Anyone have a clue why this is happening. It's just on the image display
page.
I link to the image like so...
img
src=dsp_getimg.cfm
Find out how iMS Stacks up to the competition:
http://www.coolfusion.com/imssecomparison.cfm
--- On Thursday, December 09, 2004 12:38 PM, Emmet McGovern scribed: ---
I'm using cfcontent to prevent hotlinking images and I'm suddenly
having a
lot of emails with people using Norton firewall
I think its your use of cgi.referer. I have seen cases of Norton
Internet Security stripping that variable.
-Original Message-
From: Emmet McGovern [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 12:38 PM
To: CF-Talk
Subject: cfcontent and Norton firewall?
I'm using
Well, it appears that's the case. Another wasted day redoing something. Oh
well.
-Original Message-
From: Scott Mulholland [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 1:18 PM
To: CF-Talk
Subject: RE: cfcontent and Norton firewall?
I think its your use of cgi.referer. I
Subject: Re: Incremental CFCONTENT?
It won't try to compile the file if there is no server mapping to the
.txt extension.
Use cfset getPageContext().include(header-static-html.txt)
It's my understanding that this will, in fact, execute the page if it
is a JSP or CFM file. Is it the case
]
Sent: Monday, November 29, 2004 5:57 PM
To: CF-Talk
Subject: Re: Incremental CFCONTENT?
It won't try to compile the file if there is no server mapping to the
.txt extension.
extension?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
Can I pipe out parts of pages using CFCONTENT? I currently have an
cache_to_file tag which I wrote to cache parts of rendered pages to
file.
Right now I (inefficiently) CFFILE-Read them, then #output# the
contents. What I'd like to do is CFCONTENT them directly to the
response output stream
Can I pipe out parts of pages using CFCONTENT?
No, I'm pretty sure you can't if you use the FILE attribute of CFCONTENT.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
-static-html.txt output=#output#
-joe
On Mon, 29 Nov 2004 14:54:48 -0500, Katz, Dov B (IT)
[EMAIL PROTECTED] wrote:
Can I pipe out parts of pages using CFCONTENT? I currently have an
cache_to_file tag which I wrote to cache parts of rendered pages to
file.
Right now I (inefficiently) CFFILE
Use cfset getPageContext().include(header-static-html.txt)
Can I pipe out parts of pages using CFCONTENT? I currently have an
cache_to_file tag which I wrote to cache parts of rendered pages to
file.
Right now I (inefficiently) CFFILE-Read them, then #output# the
contents. What I'd
Use cfset getPageContext().include(header-static-html.txt)
It's my understanding that this will, in fact, execute the page if it is a
JSP or CFM file. Is it the case that it will not attempt to execute the page
if it isn't mapped to a specific executable file extension?
Dave Watts, CTO, Fig
It won't try to compile the file if there is no server mapping to the .txt
extension.
Use cfset getPageContext().include(header-static-html.txt)
It's my understanding that this will, in fact, execute the page if it is a
JSP or CFM file. Is it the case that it will not attempt to execute the
, 2004 18:42
| To: CF-Talk
| Subject: CFCONTENT and PDFs (Re: CFCONTENT and GetPageContext())
|
| Greetings.
|
| Anyone run into problems with using GetPageContext().Include()and
| CFCONTENT to serve, say a PDF file, on the same page.
|
| I'm having a similar problem. I'm almost positive
You should be able to specify a different name within your CFCONTENT tag:
http://www.figleaf.com/demo/mimetest/
Dave Watts, CTO, Fig Leaf Software
Dave,
I had been using
cfheader name=Content-Disposition value=inline; file=#myFormPath#/#myFormName#
and have changed it to
cfheader name
served by cfcontent inside MSIE
correctly. Something has to have changed in the way MSIE
functions.
You should be able to specify a different name within your CFCONTENT tag:
http://www.figleaf.com/demo/mimetest/
The PDF link in that page worked for me in IE6 on Windows XP SP2.
Dave Watts, CTO
|Subject: CFCONTENT and GetPageContext()
|
|Greetings.
|
|Anyone run into problems with using GetPageContext().Include()
| and CFCONTENT to serve, say a PDF file, on the same page.
|
|
|If I use the following code at the top of a template,
|everything works as expected: the download dialog pops up
Greetings.
Anyone run into problems with using GetPageContext().Include()and
CFCONTENT to serve, say a PDF file, on the same page.
I'm having a similar problem. I'm almost positive it's a security fix in MSIE. The main function of the application I'm building is to create and present PDF
Greetings.
Anyone run into problems with using GetPageContext().Include()and CFCONTENT to serve, say a PDF file, on the same page.
If I use the following code at the top of a template, everything works as expected: the download dialog pops up in the browser:
cfheader name=Content-disposition
I'm looking to use CFCONTENT to provide the various files on my
website as I am finding hotlinking a bit of a problem at the moment
and want to stop it.
I'm hosting on a Windows 2000 Server with IIS5 and CFMX (6.1) and plan
on using CFCONTENT to check the referring page to make sure it came
from
location of the file.
Andrew.
- Original Message -
From: Steven Wojciechowski [EMAIL PROTECTED]
Date: Tue, 21 Sep 2004 21:39:04 +0100
Subject: CFCONTENT
To: CF-Talk [EMAIL PROTECTED]
I'm looking to use CFCONTENT to provide the various files on my
website as I am finding hotlinking a bit
to
using CFCONTENT to return files, beyond the overhead of a web server
returning those files.
I had looked at Apache as an option for the server to use the
.htaccess files to prevent hotlinking, however the server
also needs to run several ASP applications which I've had
difficulty getting going
Hey All,
Some Mac IE 5.1 users are having issues seeing images that are called from a
non-web accessibnle directory using CFCONTENT.
Code like so:
image tag:
img
src="">
#
contents of show_image.cfm:
cfcontent type=image file=#FullNonWebAccessibleFilePath#
Has anybody else seen t
and as usual...I solve my own dang problem after posting ;-)
I should have used image/jpeg instead of image in the type attribute of CFCONTENTDOH!
Cheers
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
Some Mac IE 5.1 users are having issues seeing images that are called from a
non-web accessibnle directory using CFCONTENT.
I had a similar problem a few days ago. I think the problem came from having \ istead of / in the url.
Doesn't bother IE 6 on Windows, but others don't like.
If you're using
Yeah, of course, it is just that this deletefile feature is
not there for nothing and is supposed to work, and I want to
make sure there is no way to have it working properly before
I take another direction.
I suspect that most people using DELETEFILE aren't also creating the file
within
Hi,
Is there any restriction about where the file return by CFCONTENT may be in the server?
I return a gif file with something like:
CFCONTENT TYPE=image/gif FILE=#tempFilePath# DELETEFILE=yes
If the location of the file is in the HTTP server scope, it works, but if it is in
C:\windows\temp
If CF has no rights to delete the file, then it can't.I've also seen
IIS put a stranglehold on file using this approach too.
Doug
- Original Message -
From: Claude Schneegans [EMAIL PROTECTED]
Date: Tue, 07 Sep 2004 13:50:55 -0400
Subject: Any restriction in CFCONTENT?
To: CF-Talk [EMAIL
If CF has no rights to delete the file, then it can't.I've also seen
IIS put a stranglehold on file using this approach too.
Hmmm so I better use another directory ;-/
But how come CF returns this directory in getTempDirectory() id it has no rights on it?
--
It is even weirder considering the file was in fact created by CF itself using a call to
GetTempFile ()... ;-/
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL
It is even weirder considering the file was in fact created by CF
itself using a call to GetTempFile ()... ;-/
I vaguely recall that the CFCONTENT tag runs within the security context of
the web server, not the CF server itself. I don't know if this is still true
with CFMX, but if so it could
if you try to delete a file so soon after creating it, you might
have a problem there too, as it may well still be locked.
I understand, but isn't CFCONTENT supposed to take care of this if
1. the file was created by CF itself,
2. CFCONTENT provides an attribute to delete the file after, I mean
Hi,
Still trying to have CFCONTENT do its job unde CF 5, here is the situation:
1. a temp file is created using
CFSET tempFilePath = GettempFile(localDirectory,map)
2. a CFX_tag is called and it writes an image on the file ok, yes, it closes the file!
3. a template is called from a IMG src="
I really need these files to be deleted, otherwise they
will fill up my server.
Why not just delete them on a scheduled basis?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads]
[This Message]
[Subscription]
[Fast
Why not just delete them on a scheduled basis?
Not really a viable solution for a commercial product ;-(
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Why not just delete them on a scheduled basis?
Not really a viable solution for a commercial product ;-(
I respectfully submit it's more viable than the (non-working) approach
you're using now. There are plenty of ways to handle scheduling, and the
transfer of work from runtime to some
I respectfully submit it's more viable than the (non-working) approach
you're using now.
Yeah, of course, it is just that this deletefile feature is not there for nothing and is supposed to work,
and I want to make sure there is no way to have it working properly before I take another direction.
I'm using cfcontent to present PDF files to the user. Process works
perfectly in Mozilla FireFox. Of course, MSIE is a different beast.
This is the code I'm using:
cfheader
name=Content-Disposition
value=inline;file=#variables.pdfFileNameWithPath#
cfcontent
type=application/pdf
file
I am trying to use the cfcontent tag but want the results to be put in my td not to rewrite the screen. Is this possible?
What I am doing is running a jpeg resize tag and it uses the cfcontent tag so I can delete the image after it is displayed. The problem is the image gets displayed
CFDEV wrote:
I have a code on a page that pop up a save/open for downloading a page :
cfheader
name=Content-Disposition
value=attachment;filename=#getfilefrompath(cas.fichier)#
cfcontent
file=#nom_fichier2#
type=application/pdf
deletefile=No /
And I want to redirect the page
And the reason is both tags rewrite the header.
Micha Schopman
Software Engineer
Modern Media, Databankweg 12 M, 3821 ALAmersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User
And the reason is both tags rewrite the header.
Well, not exactly. You can use multiple tags that rewrite the header in the
same page, as long as those tags don't tell the browser to do two things at
once that can't be done in one request. For example, you can use CFCOOKIE
and CFLOCATION in CFMX
the request, so the request would then continue on to deliver
the file in theory. Though I don't personally know if the
cfcontent tag will also change the status header that's
required for the relocation or if there might be other
complications owing to the standard or implementation
Dave Watts wrote: When you use CFCONTENT to deliver a file, it doesn't set
a Location header.
It simply delivers the content specified by the tag.
I've been meaning to ask for awhile, but how much overhead does CFCONTENT
create if you are serving a 1MB file? Howabout a 10MB file? Does the CF
I've been meaning to ask for awhile, but how much overhead
does CFCONTENT create if you are serving a 1MB file? Howabout
a 10MB file? Does the CF server actually handle the file, or
does it just provide a pointer to the local file?
I believe that the request is handled entirely by the web
Hi,
I have a code on a page that pop up a save/open for downloading a page :
cfheader
name=Content-Disposition
value=attachment;filename=#getfilefrompath(cas.fichier)#
cfcontent
file=#nom_fichier2#
type=application/pdf
deletefile=No /
And I want to redirect the page to another
I have a code on a page that pop up a save/open for
downloading a page :
cfheader name=Content-Disposition
value=attachment;filename=#getfilefrompath(cas.fichier)#
cfcontent file=#nom_fichier2#
type=application/pdf
deletefile=No /
And I want to redirect the page to another page after
You can't use cflocation or cfheader after cfcontent, but you can use
cfheader before cfcontent. Thus, you can issue a redirect with cfheader and
still use cfcontent.
-Matt
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of S.Isaac Dealey
Sent: Monday
Thanks guys...
Isaac your solution works just fine with the location...
Pat
_
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: August 30, 2004 22:23
To: CF-Talk
Subject: Re: redirect after cfheader/cfcontent
I have a code on a page that pop up a save/open for
downloading
Oups, I respond too fast.. I just tested it with the pop-up blocker on and
it blocks the target=_blank which is no good..
Matt, how do I redirect in the cfheader? I use the cfheader before the
cfcontent..
Thanks
Pat
_
From: Matt Liotta [mailto:[EMAIL PROTECTED]
Sent: August 30
Thanks guys...
Isaac your solution works just fine with the location...
Pat
Ahh cool, good to know I could help. :)
s. isaac dealey954.927.5117
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
the request, so the request would then continue
on to deliver the file in theory. Though I don't personally know if
the cfcontent tag will also change the status header that's required
for the relocation or if there might be other complications owing to
the standard or implementation of HTTP, since
Oups, I respond too fast.. I just tested it with the
pop-up blocker on and
it blocks the target=_blank which is no good..
Matt, how do I redirect in the cfheader? I use the
cfheader before the
cfcontent..
Thanks
Pat
Sounds to me like a bad popup blocker... iirc the blockers
Hi all,
I want to use Cfcontent to force a download of query results in a plain text
format.The following code works in my IE 6 Win browser (opens notepad with
the data), but on another machine also using IE 6 Win, notepad opens, but no
data.
What am I doing wrong?
cfset VARIABLES.todaysDate
Just to clarify, you do not need to use header tags in the page to disable caching. My Web server knows enough to not cache cfm files without specifying anything in the file itself. Since the user is hitting a .cfm page, you could be running into a no-cache directive at the Web server level. An
I have a form that resides on an SSL site.It submits to another SSL page and after inserting the data into our SQL Server db (via cfstoredproc), it does a cfcontent to display a pdf, using the following:
cfset variables.pdf_to_display = Request.fileRoot \ variables.filepath
Throw a CFHEADER tag in there:
cfheader name=Content-Disposition value=attachment;
filename=#variables.filename# /
cfcontent file=#variables.pdf_to_display# type=application/pdf
deletefile=false reset=true /cfabort /
Not sure if that'll solve your problem, but that's how we always do
.
Thanks,
Evan
Throw a CFHEADER tag in there:
cfheader name=Content-Disposition value=attachment;
filename=#variables.filename# /
cfcontent file=#variables.pdf_to_display# type=application/pdf
deletefile=false reset=true /cfabort /
Not sure if that'll solve your problem, but that's how we
try changing attachement to inline in the CFHEADER tag.
cheers,
barneyb
On Mon, 26 Jul 2004 14:25:06 -0400, Evan Lavidor
[EMAIL PROTECTED] wrote:
Hi Barney,
Thanks for the suggestion.When I do that, then the user is prompted to open or save the file (and opening doesn't work - at least from
Thanks for the suggestion.inline produces the same effect as I was seeing originally.Namely, the PDF doesn't display.If I take the SSL out of the equation, everything works fine.
If anyone has any other ideas, I'd be most grateful.
Thanks,
Evan
try changing attachement to inline in the
301 - 400 of 991 matches
Mail list logo