How to pop up a Download Window


#1

Hi all ,
I have to show window as like you got on click of save(or by pressing of
ctrl+s), which exact function like the crtl+s press.
Please let me know if anyone having any idea regarding this.
It would be great help for me.

Thanks In Advance.


#2

Kumar S. wrote:

I have to show window as like you got on click of save(or by pressing of
ctrl+s), which exact function like the crtl+s press.
Please let me know if anyone having any idea regarding this.
It would be great help for me.

If your user can hit the Submit button of a form - maybe labeled “Save”

  • the
    controller’s action can call send_file. This returns to the user as the
    “Save As
    Dialog”, which is what you describe.

If your form depends on Ajax, you can add a tiny 1px