> Is there a method to start a download twice on one page? > > We have a process that generates two files, which need to be > pushed to the client's browser for download. But I'm having > troubles getting both files to go automagically. > > I know CFContent disables any processing after the tag. So I > thought I could get around this by putting it into a custom tag > and calling it twice. This only downloads the one file. Including > the file/tag would produce the same results. > > Suggestions?? > > In the meantime, I'm going to try my luck with CFHTTP to a > page with the cfcontent tag. Here's hoping..... I don't think you'll be able to do what you want within a single script. When a browser sends an HTTP request, the server will only be able to send one HTTP response to that request. When you use CFCONTENT to serve a file, that file is the body of the response. Using CFHTTP won't get you around that basic limitation within the HTTP protocol. If you want to work around this, you can probably do it by using multiple frames or a data pipe. One frame could use JavaScript to send multiple requests to the server, although you might find it difficult to get things to run exactly the way you'd like. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

