Re: Display web page and download a file

2009-10-14 Thread John Pullam
> In your "show a web page" just put a meta refresh to the cfm page > that retreives the file. This is how almost every system out there does > it (like sourceforge) > > > > The number "2" is the number of seconds to pause before attempting > file download > That works very nicely. Thanks

Re: Display web page and download a file

2009-10-13 Thread Rick Root
On Tue, Oct 13, 2009 at 12:49 PM, John Pullam wrote: > > I have an app in CF8 that needs to show a web page and then download a file > that my user requested. Nothing too difficult. The page essentially tells > them some stats on the file and acknowledges the request. I can'

Re: Display web page and download a file

2009-10-13 Thread Tony Bentley
Usually just creating a link to the cfheader content page will push the download without changing the current page location. Basically this allows the calling page to be downloaded but you could modify it to however you want. Instead of using the application.cfc, just include it as your downloa

Re: Display web page and download a file

2009-10-13 Thread John Pullam
I assume that I can simulate it by reading the file and calculating the stats, then redoing the entire cfquery on another page from a cflocation. In one of my attempts, I split the current page up by moving the cfcontent and cfheader only to a new page but that didn't work (acted as though it w

Re: Display web page and download a file

2009-10-13 Thread Mahcsig
Try creating your stats page then cflocation to another page that pushes the file out. ~Mahcsig On Tue, Oct 13, 2009 at 9:49 AM, John Pullam wrote: > > I have an app in CF8 that needs to show a web page and then download a file > that my user requested. Nothing too difficult.

Display web page and download a file

2009-10-13 Thread John Pullam
I have an app in CF8 that needs to show a web page and then download a file that my user requested. Nothing too difficult. The page essentially tells them some stats on the file and acknowledges the request. I can't find any way to do both though. As soon as I insert the following,

Re: CFCONTENT and CFHEADER to download a file on CF 5

2006-08-29 Thread jim collins
"How To Raise a "File Download" Dialog Box for a Known MIME Type" http://support.microsoft.com/default.aspx?scid=kb;EN-US;q260519 Try that. > I've got a .mht (multipart html) that I generated from powerpoint. My > end result is to be able to fill in pieces of a powerpoint slide on > the fly

CFCONTENT and CFHEADER to download a file on CF 5

2006-08-18 Thread Burns, John D
I've got a .mht (multipart html) that I generated from powerpoint. My end result is to be able to fill in pieces of a powerpoint slide on the fly with CF to generate the appropriate .mht file to a user. However, if I pass it to the user as an .mht, it tries to open in the browser. I added a and

RE: Download a file

2005-03-22 Thread Russ
You can use cfhttp to grab the file off another site and save it to your web server. Russ -Original Message- From: Rodger [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 8:02 PM To: CF-Talk Subject: Download a file I want to automate downloading a file from a public webserver

Download a file

2005-03-22 Thread Rodger
I want to automate downloading a file from a public webserver. I would prefer to save it to a client, but saving to the webserver will also work. Now I am using an http://server/file.txt>file.txt and manually saving from a browser. Any ideas for automating it from CF (or other common technologie

Dependable way to download a file with CF

2004-03-18 Thread Mickael
Hi All I know this has been discussed a few time but I am not able to have a user download a file consistently with CF.   Here is the code I use The file exists in the directory, what I get in IE instead of the file name is the CFM template name in the save as box, or just an error that it

Using Cfcontent to download a file problem

2003-09-10 Thread Mark Leder
I have an acrobat file 900K which I want to automatically start a download to a client machine when a person clicks a link. Through v6.0 of CFMX, the code listed below worked great for both IE 6 and NS6 & 7. Now, it seems like since I've upgrade to CFMX 6.1 on the server, the file downloaded is 0