On 30 Dec 2012 at 1:05, =?ISO-8859-1?Q?Claude_Schn=E9 wrote:
Hi Claude
The attachment option forces a download without viewing, I want the user to
be able to view the document and then save it if they choose.
So far there are two options that I can use in the serving page classroom.cfm:
cfheader name=Content-disposition value=inline;filename=#handout# /
cfcontent type=application/pdf file=#handoutfile# deleteFile = no /
This works great for viewing the file, but the name of the file is
classroom.pdf
since there is multiple handouts the user is likely to overwrite
Hi Claude
No classroom.cfm is the file that serves up the handouts.
person clicks on a link: classroom.cfm?handout=session1.pdf
classroom.cfm has
cfheader name=Content-disposition value=inline;filename=#handout# /
cfcontent type=application/pdf file=#handoutfile# deleteFile = no /
Well, I see. Then it definitely looks like a Firefox issue. Have you try with
Explorer?
I don't see what you can do from CF.
~|
Order the Adobe Coldfusion Anthology now!
Hi Claude
It appears on all browsers. i think the issue is in the adobe pdf reader, not
picking up the file name.
it seems to fall under the rubric. Just when I thought I had idiot proofed the
system they invented a more advanced idiot.
My solution for now, or what I am prepared to put time
try this.
http://www.sitepoint.com/forums/showthread.php?640127-changing-filename-of-download-in-cfcontent
On Sun, Dec 30, 2012 at 1:50 AM, Rob Voyle robvo...@voyle.com wrote:
Hi Folks
I have a webpage called classroom.cfm
It serves up a series of pdf handouts using
cfcontent type =
Hi Russ
creating objects is beyond my expertise and I couldn't get the sitepoint idea
to
work. Kept getting an object error. However my suspicion is that it wouldn't
solve my problem.
cfheader name=Content-disposition
value=attachment;filename=#downloadFile# /
forces the browser to save the
Rob,
The following should work:
cfheader name=Content-disposition
value=inline;filename=#downloadFile# /
-Dan
On Saturday, December 29, 2012, Rob Voyle wrote:
Hi Russ
creating objects is beyond my expertise and I couldn't get the sitepoint
idea to
work. Kept getting an object error.
Hi Dan
That doesn't work
It opens the pdf fine: the url in the browser says
www.host.com/webinars/classroom.cfm?handout=ai-session1.pdf
and if I try to save the pdf file the file name is: classroom.pdf
What I would like to do is save it as: ai-session1.pdf
Rob
On 29 Dec 2012 at 23:45, Dan G.
You need two tags: one to set the file name, one to send return the document
cfheader name=Content-Disposition value=attachment; filename=myFile.pdf
cfcontent type = application/pdf file=#handoutFile# DELETEFILE=no
RESET=yes
I came across a problem with CFCONTENT. Even if the attribute RESET=yes is
used, the content which was previously set by cfhtmlhead is not reset.
Ex 1:
cfhtmlhead text = 'This is in the head section'
cfcontent type=text/html; charset=ISO-8859-1 RESET=yes
This shouldn't have the head
Once you use any
functionality that explicitly writes part of the response (CFHTMLHEAD,
CFHEADER, etc) you can't use functionality that lets you manipulate
the storage buffer (CFCONTENT, CFFLUSH).
Not so sure about this.
I've noticed that the effect of CFHTMLHEAD is to find the HEAD.../HEAD
Once you use any
functionality that explicitly writes part of the response (CFHTMLHEAD,
CFHEADER, etc) you can't use functionality that lets you manipulate
the storage buffer (CFCONTENT, CFFLUSH).
I think it is actually the opposite:
Once you have used CFCONTENT, CFFLUSH, you cannot use any
Use cfdocument not cfcontent.
Documentation at:
http://cfquickdocs.com/cf9/#cfdocument
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
Ah wait, sorry, didn't read the message properly.
The answer is to use filename attribute of cfdocument - this saves the file on
disk, and doesn't send it to the browser.
~|
Order the Adobe Coldfusion Anthology now!
Jason,
I am experiencing a similar problem. Did you ever find out exactly what was
causing yours?
thanks,
Stephen
Thank you for the ideas. We are going to change the mime/type and
also add some I/O logging to see if we can find a correlation there.
Should we find the issue I will
This is a known bug, please log in at the Adobe site and vote for getting it
fixed:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=83425
~|
Order the Adobe Coldfusion Anthology now!
This is a known bug, please log in at the Adobe site and vote for it:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=83425
~|
Order the Adobe Coldfusion Anthology now!
well it works perfectly in all browsers except safari (windows)...
after tearing all my hair out, realized the pop up block in safari was on! :\
~|
Order the Adobe Coldfusion Anthology now!
thanks for all the help, now works perfect!
well it works perfectly in all browsers except safari (windows)... have
searched the internet and found this is a common problem although even when i
add the suggestions it still doesn't work, can anyone spot what is wrong with
this code:
cfheader
I thought I could remember something quirky. My memory sucks. If only I
could remember if there's a resolution.
Good luck.
On Sat, Feb 26, 2011 at 6:35 AM, Richard White rich...@j7is.co.uk wrote:
thanks for all the help, now works perfect!
well it works perfectly in all browsers except
thanks for all the help, now works perfect!
Hi,
for security we store xls documents in a non-web root folder. We then
use a cfcontent tag to serve the file to the user.
the problem is when the user clicks the link they are displayed a
download dialogue and all is fine if they click
To force a download no matter the type:
cfheader name=Content-Type value=application/unknown /
cfheader name=Content-Disposition value=attachment; filename=#filename#
/
Dennis Powers
UXB Internet - A website Design and Hosting Company
P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
W:
Also, read this blog post of mine for more details on serving files up for
download.
http://www.trunkful.com/index.cfm/2010/8/4/Serving-File-Downloads-with-ColdFusion
Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com
wilg...@trunkful.com
You need to use the cfheader tag and tell it the filename.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk]
Sent: Friday, 25 February 2011 5:22 AM
To: cf-talk
Subject: cfcontent and save as
Hi,
for
This question comes up pretty often. I don't remember if there's actually a
fix or not. I remember people having problems despite using cfheader to
define content-type and disposition.
Perhaps some of these will help:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24528
: Michael Grant [mailto:mgr...@modus.bz]
Sent: Friday, 25 February 2011 5:46 AM
To: cf-talk
Subject: Re: cfcontent and save as
This question comes up pretty often. I don't remember if there's actually
a fix
or not. I remember people having problems despite using cfheader to define
content-type
-Disposition
value=Attachment;FILENAME=#FileName#
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: Friday, 25 February 2011 5:46 AM
To: cf-talk
Subject: Re: cfcontent and save as
This question comes up
I am generating a text file from an online database that needs to be opened
by the VB application with a CHR(10) character delimeter between
fields. The end user clicks download in my application and then saves the
file to their computer to use with the VB application (3rd party
written).
Either of these should work for you...
cfsavecontent variable=strTextStart text here.
/cfsavecontent
OR
cfcontent
type=text/plain
reset=true
variable=#ToBinary(ToBase64(trim(strText)))# /
~|
Order the Adobe Coldfusion
Thank you for the ideas. We are going to change the mime/type and also add
some I/O logging to see if we can find a correlation there. Should we find the
issue I will certainly post back.
Thanks for the time!
Jason
ON the other hand... I would expect a mime/type problem to result in an
The only think I could think of is use application/pdf for the Content-Type
(that is technically the correct mime type).
-Jake
On Tue, Aug 31, 2010 at 10:33 AM, Jason Fill jasonf...@gmail.com wrote:
Our application uses cfcontent to serve back some PDF files and several
times per day, the
Good call I think Jake...
-Original Message-
From: Jake Churchill [mailto:reyna...@gmail.com]
Sent: Tuesday, August 31, 2010 11:02 AM
To: cf-talk
Subject: Re: cfcontent to serve PDF files hanging
The only think I could think of is use application/pdf for the Content-Type
: cfcontent to serve PDF files hanging
Good call I think Jake...
-Original Message-
From: Jake Churchill [mailto:reyna...@gmail.com]
Sent: Tuesday, August 31, 2010 11:02 AM
To: cf-talk
Subject: Re: cfcontent to serve PDF files hanging
The only think I could think of is use application/pdf
On Tuesday 22 Jun 2010 14:11:24 you wrote:
Hi All,
I was wondering if somebody could help with a problem we have encountered
since moving to ColdFusion 9 from ColdFusion 8.
When we use CFContent to serve a file, it fails on large files (300+mb) but
works on smaller (-30mb) files. It
Hi Tom,
Everything has been double-checked and request limits checked. I tried on
anther CF9 server and the same thing happens. CF8 with the exact same
settings works
I'm at a complete loss and wondering if anyone else out there with CF9 could
try a simple test and see what happens?
On Tuesday 22 Jun 2010 14:57:12 Daniel Mackey wrote:
cfheader name=Content-Disposition value=attachment; filename=cf9.exe
cfcontent type=unknown file=C:\temp\cf9.exe deletefile=No
Confirmed broken I think - congratulations, you've found a bug in ColdFusion
:-)
I'm on 64bit SuSE Linux here,
Update:
I now can't get anything to work on the box, because :
Error,jrpp-15,06/22/10,15:10:25,billpack,Java heap space The
specific sequence of files included or processed is:
/home/chivertont/workspace/billpack/webroot/t.cfm''
java.lang.OutOfMemoryError: Java heap space
Of course a swift
Ugghhh. I was secretly hoping that wasn't going to be the case...
Anyone got any alternatives? Could this be performed using Java?
Dan.
On Tue, Jun 22, 2010 at 3:10 PM, Tom Chiverton tom.chiver...@halliwells.com
wrote:
On Tuesday 22 Jun 2010 14:57:12 Daniel Mackey wrote:
cfheader
That's interesting. I don't get any messages logged and the server stays
up
I might give the heap space a lash and see
I'm always confused as to where to set the heap, perma and all that jazz and
what effects it all has
Dan.
On Tue, Jun 22, 2010 at 3:11 PM, Tom Chiverton
Unfortunately changing the heap (to 1024) didn't make a blind bit of
difference :-(
Anyone got any suggestions on a possible work around?
Dan.
On Tue, Jun 22, 2010 at 3:24 PM, Daniel Mackey dmac...@gmail.com wrote:
That's interesting. I don't get any messages logged and the server stays
[mailto:dmac...@gmail.com]
Sent: Tuesday, June 22, 2010 10:39 AM
To: cf-talk
Subject: Re: CFContent failing on large files since moving to ColdFusion 9
Unfortunately changing the heap (to 1024) didn't make a blind bit of
difference :-(
Anyone got any suggestions on a possible work around?
Dan.
On Tue
]
Sent: Tuesday, June 22, 2010 10:39 AM
To: cf-talk
Subject: Re: CFContent failing on large files since moving to ColdFusion 9
Unfortunately changing the heap (to 1024) didn't make a blind bit of
difference :-(
Anyone got any suggestions on a possible work around?
Dan.
On Tue, Jun 22, 2010
I have not tried this, but what if you change the cfcontent type to unknown?
Like so:
cfcontent type=unknown
cfheader name=Content-Disposition value=filename=report.xlsx
On Thu, Dec 31, 2009 at 2:37 AM, Christophe Maso zum...@hotmail.com wrote:
Have seen a few posts around the web with
I've had the same problem, although the file will open after the user clicks
yes. I Looked to see if there's a different MIME type to use for .xlsx files
vs. .xls files, and there is (see
http://blogs.msdn.com/vsofficedeveloper/pages/Office-2007-Open-XML-MIME-Types.aspx).
But using that mime
You want cfsavecontent, not cfcontent.
Write the contents of the cfsavecontent variable into a file with cffile.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/10/14 Richard White rich...@j7is.co.uk:
hi
we are using cfcontent and rich text to create
Richard,
You don't really need CFCONTENT (which actually sets up headers in the
browser). You are not trying to send your content to the output buffer of
IIS. Try cfsavecontent instead.
cfsavecontent variable=content
{\rtf1\ansi\ansicpg1252\uc1\deff0=stshfdbch0 etc...
/cfsavecontent
cffile
This should work for you:
cfsavecontent variable=myContent
This is the content that will go into my .doc file.
This is a test.
/cfsavecontent
cffile action=write
file=#Replace(ExpandPath('*.*'),'*.*','')#test.doc
output=#myContent#
Best
thanks, that is exactly what we wanted
richard
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Joshua Rowe wrote:
This should work for you:
cfsavecontent variable=myContent
This is the content that will go into my .doc file.
This is a test.
/cfsavecontent
cffile action=write
file=#Replace(ExpandPath('*.*'),'*.*','')#test.doc
On Wed, Oct 14, 2009 at 12:32 PM, Ian Skinner h...@ilsweb.com wrote:
But a 'doc' file type is a binary file type is it not? In my experience
you can't just write simple text to a with a doc extension and get
anything useful. I could see this working with an plain text (.txt) or
rich text
The first question I would ask is Why do they want the images stored in a
non-web-accessible location
If the answer is something lame like, they don't want users to be able to
download them, then you can get around this whole issue as you can tell them
that there is no way to totally prevent a
I have had this problem before. My extremely low tech solve was to shutdown
browser and then remove adobe from memory through the task manager. hope this
helps.
~|
Adobe® ColdFusion® 8 software 8 is the most important and
Hi,
Did you manage to figure up this issue?
I use IE7 and
response.setContentType(application/vnd.ms-excel);
response.setHeader(Content-disposition,attachment; filename=Book.xls);
Like you I get a yellow bar To help protect your security, IE has blocked this
site from downloading files... but
Add a cfqueryparam to that code and we'll help you ;-)
Have you tried killing the acrobat.exe process to make sure it isn't hung up
on something.
~Brad
- Original Message -
From: Nathan Chen [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Saturday, August 16, 2008 10:44
First, check that your datasource has the enable BLOB checkbox ticked.
On Sun, Aug 17, 2008 at 11:44 AM, Nathan Chen wrote:
Hi, All:
I have a query that selects a BLOB field (embedded file) from a table.
Then I use cfcontent to output the string to the browser. The code has
running fine
That's it. I can't believe I forgot to turn enable BlOB when I updated
the dsn today. Thank you!
Nathan
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 16, 2008 9:47 PM
To: CF-Talk
Subject: Re: CFContent tag
First, check that your datasource has
Try:
cfhttp method=get
url=http://images.realworks.nl/servlets/images/media.objectmedia/3803552?wi
dth=161height=121 getasbinary=auto result=result/
cfcontent type=image/jpg
cfcontent
reset=truecfoutput#ToString(result.Filecontent)#/cfoutputcfabort
Adrian
http://www.adrianlynch.co.uk/
Hi Adrian,
that (ToString) works. With it I get the picture, without it I get my
domainname as a pict. Is there some logic behind this? If I save the
result.FileContent (a binary stream) to a txt file there is all kind of text
but not the domainname. Somehow it is there so that it gets
ToString converts the binary into a text encoding so that it can be
sent to the browser. Without it you're probably getting the result of
an error handler, as binary data can't be directly output without
converting to a string and this will be causing an exception.
On Tue, Apr 8, 2008 at 9:47 PM,
Isn't it application/msexcel ?
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]
Sent: Monday, February 04, 2008 11:26 AM
To: CF-Talk
Subject: cfcontent downloads and IE
Hello, I am trying to use cfcontent to
You state that you are creating an Excel file...
Is that an actual Excel binary file or is it a CSV file?
As Barney stated, Excel isn't going to allow a number with leading zeros. You
can format to display zeros in any app including Excel, but formatting and
actual data content are 2 different
Dunno how to do this from CF, but Excel allows you to set a format for a
cell.
So if you set the cell format as 'text', it won't strip the leading zeros.
I just fired up Excel, set one column as a 'text' format, the next
untouched, and typed in '01234' in both. The first one (text column)
Within Excel itself, prefixing a numberish value with an apostrophe
will make it render as a string (and be absolved from zero-trimming).
Did you try that?
cheers,
barneyb
On 9/13/07, andy mann [EMAIL PROTECTED] wrote:
I am creating an excel file in cf7 and all works well except when a part
Within Excel itself, prefixing a numberish value with an apostrophe
will make it render as a string (and be absolved from zero-trimming).
Did you try that?
cheers,
barneyb
--
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/
Got Gmail? I have 100 invites.
tnx bb,
as the visitor will be importing excel file into their acctg software, field
must remain numeric...
also anyone know how to apply col width as seems to default to 48px
tnx again
Within Excel itself, prefixing a numberish value with an apostrophe
will make it render as a string (and
bb,
tnx
problem is that field must remain numeric...
also anyone know how to reset default col width when excel file generated?
~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles
You've got a bit of a contradiction in your statements. If it MUST
remain numeric, then it's a number, and you can't care about leading
zeros because from a numeric perspective 123 and 0123 are identical.
If you do care about the leading zeros, then you can't be dealing with
a numeric context,
Use cfheader and cfcontent to set they data type, reset the output, etc.
Then just print the XML. If you really need to FORCE them to download
it (something I'd not recommend), you could always misset the MIME type
to something like application/octet-stream.
--Ben Doom
Chad Gray wrote:
I
You don't put it in the variable paramter, but rather between the tags.
cfcontent#myXMLString/cfcontent
You will probably want to provide the proper content headers with
cfheader... tags before this.
~|
Enterprise web
Chad, Variable only take binary values. Good news - you can easily
convert string to binary:
cfcontent type=text/xml variable=#ToBinary( ToBase64( 'YOUR_STRING'
) )# /
..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
Need ColdFusion Help?
PM
To: CF-Talk
Subject: Re: cfcontent
You don't put it in the variable paramter, but rather between the tags.
cfcontent#myXMLString/cfcontent
You will probably want to provide the proper content headers with
cfheader... tags before
?
www.bennadel.com/ask-ben/
-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 5:26 PM
To: CF-Talk
Subject: RE: cfcontent
Thanks Ian and Ben, I got is working now.
Next question. Firefox does not like the fact that the file name has
spaces
Hah! Brilliant!
Thanks Ben!
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 5:29 PM
To: CF-Talk
Subject: RE: cfcontent
No worries:
cfheader
name=Content-Disposition
value=attachment; filename=test 1234.xml
Wrap file name in double quotes
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 5:35 PM
To: CF-Talk
Subject: RE: cfcontent
Hah! Brilliant!
Thanks Ben!
~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http
Use the URL encoding for a space [%20] perhaps?
cfheader name=Content-Disposition value=attachment;
filename=test%201234.xml
But spaces in file names should usually be avoided when possible in web
applications.
~|
Check
-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 5:40 PM
To: CF-Talk
Subject: Re: cfcontent
Use the URL encoding for a space [%20] perhaps?
cfheader name=Content-Disposition value=attachment;
filename=test%201234.xml
But spaces in file names should usually be avoided when
Good Afternoon, Thank you all for your replies. Initially, taking out the
cfcontent tags did not yield any negative results. The page came back fine
to the browser. Putting the tags back on, and looking at the log files more or
less confirmed what was happening, I just don't know why. There
Also check your exception log. Even if an error does make it to the browser
it should be logged there.
Jaime Metcher
-Original Message-
From: Kris Jones [mailto:[EMAIL PROTECTED]
Sent: Saturday, 7 April 2007 6:58 AM
To: CF-Talk
Subject: Re: cfcontent excel session and url variables
Hi William,
We also use this method for handling excel formatting of reports,
although we use the form scope, not the URL. We have also seen the
could not open error. After much investigation, we found that
this error was due to a CF error that would naturally not propagate
through to excel.
Ben Nadel wrote:
I find that word (as web page) puts 3D in front of each of it
attributes:
p style=3Dcolor:black;
Here is text
/p
I think it is 3D but it might be something else.
=3D is the representation of the equals sign = in quoted-printable
encoding. = is the escape
PROTECTED]
Sent: Friday, March 30, 2007 4:06 AM
To: CF-Talk
Subject: Re: Cfcontent type=application/word style ignored??
Ben Nadel wrote:
I find that word (as web page) puts 3D in front of each of it
attributes:
p style=3Dcolor:black;
Here is text
/p
I think it is 3D but it might
I find that word (as web page) puts 3D in front of each of it
attributes:
p style=3Dcolor:black;
Here is text
/p
I think it is 3D but it might be something else. What kind of document
is it really? Is it really just an HTML page that is being used by Word?
..
Ben
I have done this last week.
I had a page with a css full of styles and stuff and worked fine.
Maybe it worked on word because I was using the id of the elements
instead of classes ( #content { ... } instead of .content { ... }
Or maybe because the styles were on the same page.
The styles are on
Scott,
You call the captcha file directly from within the img tag:
img src=randomWord.cfm alt=Captcha Img /
When you post the form, you compare the Captcha input to the session
variable set in the cfm that generates the captcha.
With CFX_Captcha I believe the variable it sets is
Hello,
I'm trying to use cfcontent on Coldfusion 5 to display files. For
security purposes, I cannot link directly to the files.
I'm trying to get this to work for any type of file. Currently it
works for .doc and .xls files but not PDF files.
The page does not throw any
Green Parot wrote:
I would just like to add that is there anyway to dynamically determine the
MIME type when using cfcontent?
where filepath is the full physical path to a file you wish to determine
the mimetype of...
#getPageContext().getServletContext().getMimeType(filePath)#
should
That won't work for CF5. That only works on MX and up as far as I know.
On 10/20/06, Rick Root [EMAIL PROTECTED] wrote:
Green Parot wrote:
I would just like to add that is there anyway to dynamically determine
the MIME type when using cfcontent?
where filepath is the full physical path to
How To Raise a File Download Dialog Box for a Known MIME Type
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q260519
cfheader name=Content-Type value=application/powerpoint
cfheader name=Content-Disposition value=attachment; filename=test.ppt
Try that.
I've got a .mht (multipart
expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
-Original Message-
From: michael acadia [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Fri Jul 21 20:30:52 2006
Subject: RE: cfcontent error - IE6 XP SP2 client and Win 2003 server
Is the production server using a Cache-Control: no-cache HTTP header?
I ran into a similar problem yesterday when opening a Word doc served by
cfcontent (Win2k3 server). If MS Word was closed when I tried to open
the doc from the web page, the no-cache was deleting the file before
Word started
Peter,
I'm using the same cache-control values on my server for the same
reason. I'll have to try removing 'no-cache, no-store'. I'm not sure how
or if that would affect form submissions. Unfortunately, I'm about to
take off for a week and won't have a chance to test until I get back.
FWIW,
Can you walk me through this a touch?
I have a page that dumps a database using cfdump. Above the cfdump is a button
that says download to excel. If clicked, do I reload the page, do a
cfcontent and output the database info into a table, then reload the original
page (with the button and the
It's even eaiser than that.
cfif StructKeyExists(FORM,WhateverYouCallTheSubmitButton)
cfcontent
...etc for the cfcontent bit
cfelse
!--- your entire page, cfdump, form and all here ---
/cfif
This way the page shows the webpage in the browser unless the form
button is clicked - the
That worked great!
I kept the download code as a separate page and just did a cfinclude on it.
Wonderful. Thank for your help!
It's even eaiser than that.
cfif StructKeyExists(FORM,WhateverYouCallTheSubmitButton)
cfcontent
...
etc for the cfcontent bit
cfelse
!--- your
p align=\left\bfont face=\Arial\ size=\2\GFI MailSecurity's HTML
threat engine found HTML scripts in this email and has disabled
them./font/b/pHmmm. The only place I've seen this happen is with Firefox
where it
opens a window, or tab, when you click a link that starts a download.
However, I
I display a database (cfdump) with a download database button at
the top. That'll take you to another page that downloads the
database using the table as a file_name. This is done through
cfcontent.
When I do this, it opens up a new window, so at the end of the CF
code, I put some
well, I'd like the blank window to close instead of just sitting there with the
user wondering what to do.
It doesn't seem that I can put a close before the cfcontent either.
I put this content on a seperate page because otherwise it tries to take all my
page information (banner, menus, etc)
After I have created a document using cfdocument I am
using the following code to open the pdf,
cfheader name=content-disposition value=attachment;
filename=wibble.pdf
cfcontent type=aplication/pdf
file=#expandpath('MyFilePath')# deletefile=yes
reset=no
This shows a dialogue box to the
Thanks for that, at least I won't waste any more time looking :-)
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: 31 August 2005 17:29
To: CF-Talk
Subject: Re: CFContent question ...
After I have created a document using cfdocument I am
using the following
1 - 100 of 383 matches
Mail list logo