Save Picture As...

G

Guest

I have an interactive mapping website where there is a main map image. For
the map image, I over-rode the default right click menu to provide a popup
menu for mapping tools. Now my client has asked me to have the option to
save the image. I guess I should have seen this coming. On the browser
default right click menu there is a "Save Picture As..." option.

Does anyone know how I can get that option back, or use another way of
saving the image? At this point, removing the new popup menu is not an
option.

Any help would be appreciated.

Thanks
Glenn
 
E

Evertjan.

wrote on 04 okt 2005 in comp.lang.javascript:
I have an interactive mapping website where there is a main map image.
For the map image, I over-rode the default right click menu to provide
a popup menu for mapping tools. Now my client has asked me to have the
option to save the image. I guess I should have seen this coming. On
the browser default right click menu there is a "Save Picture As..."
option.

Does anyone know how I can get that option back, or use another way of
saving the image? At this point, removing the new popup menu is not an
option.

Any help would be appreciated.

with serverside code, the job is easy, because you can send a bitstream as
a download only.

Clientside only, try:

<img src='my.jpg' oncontextmenu='whateverYourCode();return false;'>
<br>
<a href='my.jpg' onclick='return false;'>
To download the above picture,
rightclick here and do a "save target as..."</a>
 
G

Guest

Thanks very much.

The client side solution works okay, but I'm interested in the server side
bitstream solution you mentioned. We are using Coldfusion. How would I
implement this?

Thanks
Glenn
 
E

Evertjan.

wrote on 06 okt 2005 in comp.lang.javascript:
[please do noot toppost on usenet
The client side solution works okay, but I'm interested in the server
side bitstream solution you mentioned. We are using Coldfusion. How
would I implement this?

That depends on your type of server OS
and so of platform [ASP-Js, ASP-VBs, PHP, JSP, etc].

<a href='myJPG.asp'>
<a href='myJPG.php'>
etc

Please ask in a relevant NG for relevant bitstream coding.

I am not knowledgable about Coldfusion, but that seems OT here too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top