Try this, of course swapping out the variable value to whatever var name holds you xls content:
<cfheader name="Content-disposition" value="attachment; filename=fileName.xls" /> <cfcontent type="application/unknown" variable="your-XLS-content-var" /> On Tue, Oct 12, 2010 at 11:49 AM, Victor Moore <[email protected]>wrote: > > Hi, > > I have a page with a button on it. When the button is clicked a jQuery > script runs a cfc , which basically cfoutputs the query in a table, > puts it a variables and returns it > I need to download the returned table in excel. > Unfortunately it doesn't work and the table is displyed on the page. > > I have tried to include : > <cfheader name="Content-Disposition" value="inline; > filename=fileName.xls"><cfcontent type="application/msexcel"> > in the savecontent variable returned and append it to the returned > variable in jQuery with no luck. > > If I run the page as stand alone it works fine and it display the save > as or open dialog box. > > Any idea how can I do this using jQuery? > > Thanks > Victor > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:338069 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

