Friday, August 28, 2009

Re: redirect after download dialog

If you really need to do that you may be able to accomplish it by providing the file download inside an iframe and then redirecting the main window...

I haven't tried this... it's just an idea...

On Fri, Aug 28, 2009 at 3:15 AM, brian <bally.zijn@gmail.com> wrote:

You can't. In order to have the browser present the user with a "save"
dialog, certain headers need to be sent. By the time that's happened,
it's too late to send a redirect header.

On Thu, Aug 27, 2009 at 5:35 PM, Martin Radosta<martinradosta@gmail.com> wrote:
>
> Let's say I have a view that renders an excel file to download. It
> presents a download dialog to the user. This user can decide to save the
> file to the local drive, to open the file or to cancel the operation.
> Now I need to redirect somewhere else after any operation with the
> download dialog.
>
> Does anybody knows how to do this?
>
> Thnks
>
> MARTIN
>
> >
>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: