PDA

View Full Version : Download File Button



eselis
13 Apr 2012, 8:32 AM
Hi, I have a toolbar button which has to download a file once the user clicks on it.
Do you have any suggestions about how to do that? I can't use a FormPanel because no additional information is needed, and I can't add an hyperlink to a button with the servlet url (or maybe I don't know the way to do that if it is possible)

Thanks in advance.

micgala
16 Apr 2012, 3:40 AM
Well, you can do it 2 ways:

1 - Open the download url in a new Window, with window.open
2 - Set the url to a hidden iframe...