Re: downloading images

From: Date: Mon, 29 Oct 2001 18:59:13 +0000
Subject: Re: downloading images
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72760@lists.php.net to get a copy of this message
With some of the newer broswers, you may be able to re-define the functionality of the context menu via JavaScript. Visit http://www.dynamicdrive.com; I think that there are some examples there, and you might be able to redirect the "save image as..." functionality there (I wouldn't count on it, though). Another option might be to zip up the larger image as a zip file and create a link to that zip file through the thumbnail image. That way, when the user clicks on the thumbnail, they are prompted with a "save as..." dialogue box and they can then save the document on their own computer. They still have to unzip it though. Other than that, I think you're out of luck. The problem is that saving an image onto a computer is a client-side function, which you can have no control over with server-side programs such as PHP or Perl. If you can come up with a way for a web page to mess around with the source code of Netscape or IE, then you might be able to do things like control the "save image as..." functionality, or disable the back button, but that seems pretty unlikely to me. At 10:47 AM 10/29/2001, you wrote:
Hey, I'd like users to be able to download images from on my site. The images are pretty big, so i've made thumbnails for each. I can display each thumbnail, but how can i get it so that once the user clicks on the thumbnail, they get to download the whole image. I'd like it to work without having the user to right click and choose 'save image as'. Any ideas?! Thanks, Heidi
Sliante, Richard S. Crawford http://www.mossroot.com mailto:rscrawford@mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!"

« previous php.general (#72760) next »