|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
||||
|
||||
|
'save target as' with javascript?
It is possible?
I have create a menu wich is related to some images. This menu has links like 'save image 001', 'save image 002', etc. But, since they're jpg's, clicking any link will open the images on the browser. That's why i want any way to use javascript - i'm not using database - to activate the 'save target as' window. I found some code searching on google, but didn't work :P Any suggestions? ![]() |
|
#2
|
||||
|
||||
|
You could use execCommand(), but that's only gonna work in IE.
Your best option is to use a server side script to set the headers and force the file to download... |
|
#3
|
|||
|
|||
|
You could simply use the "Content-Disposition" header to tell the browser that you would like the "Save" dialog box to ask the user what to do.
|
|
#4
|
||||
|
||||
|
Quote:
That's what my second point/link alluded to... ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > 'save target as' with javascript? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|