Download Image on click

Page: 1

Author Post
Member
Registered: Apr 2015
Posts: 6
Hello again,

in my gallery i set the navOverlayWidth to 40%, so there is 20% of empty, non-clickable space in the middle of the image. I want to download the image, when I click in this area. Do you have a suggestion, how i could do this?

I can handle the click event in this area already via jquery, but how i can force to download the current image on click?

Thank you.
« Last edit by pvlvsk on Fri Apr 24, 2015 11:12 am. »
Administrator
Registered: Aug 2008
Posts: 3382
The standard way people download images from web pages is to right-click on the image and select 'save' from the browser's context menu.

You could offer a hint to your users in a caption if you think they don't already know how to do this. Something like "caption:`Right-click the center of the image to download`".
Member
Registered: Apr 2015
Posts: 6
Thank you. Unfortunately i must go not the standard way. I already implemented this with an ajax post to a php file, that sends the headers for download. That way it works. Thank you for your rapid answer!

Page: 1