invoking "Save Target As" dynamically on an image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pythone
Forum Newbie
Posts: 8
Joined: Thu Feb 26, 2004 3:21 pm

invoking "Save Target As" dynamically on an image

Post by pythone »

Hello

I was wondering whether it is possible to invoke the "Save Target As" option (the one accessed via right-clicking a file) on an image in a page.
That is, if the user clicks on a link/button the behaviour should be as if the user right-clicked an image and chose "Save Target As" (on IE of course), i.e. open the save file dialog.

thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Probably a javascript. Not php.
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

Phenom wrote:Probably a javascript. Not php.
PHP could also do that job
It has something to do with using the right headers.
..not my specialty.
Post Reply