On Wed, Sep 15, 2010 at 10:02 AM, Raymond Camden <rcam...@gmail.com> wrote: > > I believe what you tried to do (an ajax call to a url that used > cfcontent) is not possible. Stress - I believe. I think your > document.location was the right way to do it.
I think Ray is correct. Typicaly what I've done is had the ajax call write a file then return a url to the file, then the result handler just does window.location.href=urltofile; if you want the file to be deleted after retrieval, then you just have to make urltofile be something like getfile.cfm?file=whatever.zip and have it do your cfcontent/cfheader stuff along with delete="yes" on the cfcontent. Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337055 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm