+1 for Dan's approach.
Dave
On Tue, Oct 12, 2010 at 10:12 PM, Dan G. Switzer, II
wrote:
>
> On Tuesday, October 12, 2010, Dave Watts wrote:
>
>> You can't prompt the user to download a file if you're invoking the
>> URL with standard jQuery AJAX calls. You have to basically just fetch
>> the U
On Tuesday, October 12, 2010, Dave Watts wrote:
> You can't prompt the user to download a file if you're invoking the
> URL with standard jQuery AJAX calls. You have to basically just fetch
> the URL into a new or blank window.
I'd recommend posting to an iframe. You can even build the iframe
d
> Thanks for the example. My case it's a little bit different. I get the
> info from a db call and want to allow the user to download it as an
> excel file. And it works fine in stand alone mode but when invoked
> through jQuery the cfcontent is ignored.
> So I had to manually open another window
Ah, totally missed the jquery invocation part. Gotcha.
On Tue, Oct 12, 2010 at 8:40 PM, Victor Moore wrote:
>
> Hi Michael,
>
> Thanks for the example. My case it's a little bit different. I get the
> info from a db call and want to allow the user to download it as an
> excel file. And it works
Hi Michael,
Thanks for the example. My case it's a little bit different. I get the
info from a db call and want to allow the user to download it as an
excel file. And it works fine in stand alone mode but when invoked
through jQuery the cfcontent is ignored.
So I had to manually open another wind
Here's a working example:
On Tue, Oct 12, 2010 at 1:36 PM, Victor Moore wrote:
>
> I think I may end up using this approach, to open a new window.
>
> @Michael the variable is expected to contain binary data. In my case
> is just a string.
>
> Thank you guys
> Much appreciated
>
> Vic
I think I may end up using this approach, to open a new window.
@Michael the variable is expected to contain binary data. In my case
is just a string.
Thank you guys
Much appreciated
Victor
On Tue, Oct 12, 2010 at 1:11 PM, Tony Bentley
wrote:
>
> I usually locate to another page which holds t
I usually locate to another page which holds the cfheader code. What ends up
happening when you locate to another page is you are never redirected and
the page prompts to download. Doing it in jquery is unnecessary unless you
want to use a wait icon to ensure the processing is finished before
loca
P.S. I use application/unknown to force it as a download.
On Tue, Oct 12, 2010 at 1:03 PM, Michael Grant wrote:
> Try this, of course swapping out the variable value to whatever var name
> holds you xls content:
>
>
>
>
>
>
>
> On Tue, Oct 12, 2010 at 11:49 AM, Victor Moore wrote:
>
>>
>> Hi,
Try this, of course swapping out the variable value to whatever var name
holds you xls content:
On Tue, Oct 12, 2010 at 11:49 AM, Victor Moore 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
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
11 matches
Mail list logo