473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

prompting to "save as" rather than opening images

I have pages that I want a particular person to download dozens of images.
Instead of opening each image separately with right-clicks, I want to be
able to have them simply click, and the program will offer to save all the
images to a location they specify. Can I do that with JavaScript?
Jul 20 '05 #1
5 1524
rf

"Richard Hollenbeck" <ri****************@verizon.net> wrote in message
news:GR*****************@nwrddc01.gnilink.net...
I have pages that I want a particular person to download dozens of images.
Instead of opening each image separately with right-clicks, I want to be
able to have them simply click, and the program will offer to save all the
images to a location they specify. Can I do that with JavaScript?


No. You can not affect the browsers settings. You may be able to trick the
browser into thinking they are a .exe by supplying an appropriate mime type.
This will often cause a download dialog to appear.

Why not throw the dozens of images into a single zip file.

Cheers
Richard.
Jul 20 '05 #2
"Richard Hollenbeck" <ri****************@verizon.net> wrote in message news:<GR*****************@nwrddc01.gnilink.net>...
I have pages that I want a particular person to download dozens of images.
Instead of opening each image separately with right-clicks, I want to be
able to have them simply click, and the program will offer to save all the
images to a location they specify. Can I do that with JavaScript?


Hi Richard,

The only way I could think of is creating a zip file of all the images
and creating a link to the zip file.

Hope it helps
mesal
Jul 20 '05 #3
Thank you both. I think that's a good idea too. However, my web space
provider, fortunecity.com, doesn't allow zip files. I'll try putting in my
Verizon personal web space to see if that will work.

"mesal" <me**********@yahoo.com> wrote in message
news:eb*************************@posting.google.co m...
"Richard Hollenbeck" <ri****************@verizon.net> wrote in message

news:<GR*****************@nwrddc01.gnilink.net>...
I have pages that I want a particular person to download dozens of images. Instead of opening each image separately with right-clicks, I want to be
able to have them simply click, and the program will offer to save all the images to a location they specify. Can I do that with JavaScript?


Hi Richard,

The only way I could think of is creating a zip file of all the images
and creating a link to the zip file.

Hope it helps
mesal

Jul 20 '05 #4
On Mon, 12 Jan 2004 00:27:18 GMT, Richard Hollenbeck
<ri****************@verizon.net> wrote:
I have pages that I want a particular person to download dozens of
images.
Instead of opening each image separately with right-clicks, I want to be
able to have them simply click, and the program will offer to save all
the
images to a location they specify. Can I do that with JavaScript?


The only way I know of that can do this is by specifying the content type
to be application/octet-stream. However, this can only be done through a
HTTP header that is set server-side (with PHP, and the like). I tried to
see if the content type hint (the type attribute in A elements) can
produce the same effect, but Opera certainly ignores it (it is only
supposed to be a hint, after all).

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #5
rf

"Richard Hollenbeck" <ri****************@verizon.net> wrote in message
news:t4******************@nwrddc01.gnilink.net...
Thank you both. I think that's a good idea too. However, my web space
provider, fortunecity.com, doesn't allow zip files.


Then it is time to find a new host.

Cheers
Richard.
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Richie | last post by:
What I want is to have a link to a file (it could be a .zip, .exe, .jpg, ..txt or even .html) and when the user clicks on it they are prompted with the Save As box, as opposed to it opening in the...
4
by: Dariusz | last post by:
I have the following code which executes successfully to call the browsers "save as" box... //Screensavers if ($FileType == 'scr') { // We'll be outputting a screensaver header('Content-type:...
3
by: lir | last post by:
Hi, I am trying to save a fram in a page using the execCommand("saveas") the html is save currectly but I can not save the gif on that page. How can I save the fram with the gif via...
27
by: Curious Angel | last post by:
I have a resume in PDF format and I want anyone who LEFT-OR-RIGHT clicks the link to force the file to be saved, and in any event _not_ opened. Since the PDF will be in his cache in any event, I...
3
by: Skevmeister | last post by:
Hi Guys, Ok, so I have now figured out how to create and watermark and resize and resample images for my website, but now I want to trap the "save picture as" event so that I can create another...
6
by: OriginalBrownster | last post by:
Hi there... I'm still pretty new to turbogears. but i have gotten pretty familiar with it i'm just trying to clear something up, i'm having a difficult time using \ when declaring a string...
60
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type?...
1
by: sainathparuchuri | last post by:
As a project requirement we need to convert word documents to tiff images. We have been using Microsoft Office Document Image Writer (MODI) for this puspose and doing absolutely well. But now this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.