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) and tries to make a file out of that too. So now it goes to a seperate page, sets up the content, then does a cfcontent. This page appears empty so I'd like to close it. Did I explain that well or am I missing the question? >> 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 js, window.close(); to get rid of the window. >> Unfortunately, with cfcontent in the page, the window.close() is >> ignored. Remove the cfcontent and all is fine. > >If you tell your browser that your content is for Excel, your content has to >be understandable by Excel. Excel understands HTML, but not JavaScript. But >in any case, I'm not sure what you're trying to accomplish. Do you really >want the window to close as soon as it appears? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222845 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54