I have a IFS file named "file_name.csv". I need to create a hyperlink on a panel like the one that "export csv" creates in a Grid, and behave the same, asking if I want to open or save file.
I tried with javascript "window.open("/path/file_name.csv"), but it no question, and it opens as text.
Hyperlink for download a IFS file
-
- New User
- Posts: 3
- Joined: Wed Jan 18, 2012 5:48 pm
- First Name: Alf
- Last Name: Anda
- Company Name: Eiki
- Contact:
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Hyperlink for download a IFS file
Unfortunatley, you cannot get that Open/Save dialog by linking to a static file. The browser displays that dialog when the page sends the file as an attachment, as indicated by this HTTP header:
To get this type of behavior, you would need to write a CGI or PHP program to read/output the file and to send the Content-Disposition header along with the file data.
Code: Select all
Content-Disposition: attachment;
Who is online
Users browsing this forum: No registered users and 1 guest