Re: [Ajax] - Returning a file after ajaxlongresponse
Re: [Ajax] - Returning a file after ajaxlongresponse
- Subject: Re: [Ajax] - Returning a file after ajaxlongresponse
- From: Johann Werner <email@hidden>
- Date: Mon, 05 Aug 2013 13:33:11 +0200
You could return an ERXRedirect pointing to a DirectAction or WOComponent that initiates your download.
Am 05.08.2013 um 09:44 schrieb Dev WO <email@hidden>:
> Hello,
>
> I'm having some trouble trying to return a file after an ajaxlongresponse.
>
> I'm currently have my callable task used through ajaxlongresponse (CCAjaxLongResponsePage), I'm generating a woresponse (which is actually a file) then hand back this woresponse to the controller component (which is my "regular" page where I also initiate the longresponse from.
> I'd like the file to be downloaded without user interaction at the end of the task, but so far I'm just able to get the response into my controller (so if I make another link on the page to download it works, but I don't want this extra step).
>
> Any help would be great as I'm running out of ideas on this one:)
>
> Thanks,
>
> Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden