Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 25th, 2004, 07:01 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to disable Right-click to Save Picture As....

Hello
I wanted how I can disable the Right-click to Save Picture As with images. Don't know if this is a Javascipt, css, or html question.

Reply With Quote
  #2 (permalink)  
Old December 25th, 2004, 07:11 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can't stop people from saving your images. That said, what you think of is JavaScript. It doesn't work and it's highly annoying. Maybe you yourself sometimes use the context menu for something else than to steal other people's work? :D
Reply With Quote
  #3 (permalink)  
Old December 27th, 2004, 05:40 AM
Friend of Wrox
 
Join Date: Mar 2004
Location: Bhopal, MP, India.
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

however, least! u can disable MSIE 'pop-up' for image->save as
<meta http-equiv="imagetoolbar" content="no">

( u may create members area, let them login or pay for ur images )
sometimes, i've seen i can't save a web page ( though images can be saved )
X "This Web page colud not be saved"
HTTP is a stateless protocol, i think, this is a error in local pc.
Reply With Quote
  #4 (permalink)  
Old December 27th, 2004, 02:53 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 1 Time in 1 Post
Default

There is no way to prevent people from saving any image that you display. Even if you were to disable the context menu and the image toolbar, you can just disable JavaScript or even crop a screen capture.

-Snib - http://www.snibworks.com
Where will you be in 100 years?
Reply With Quote
  #5 (permalink)  
Old January 6th, 2005, 09:26 PM
Friend of Wrox
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Snib,

What you said is not possible is possible.
Check out http://www.mitsucars.com/eclipse/index.html
JS files work but when I tried to take .js file and .gif files I get error message.
How do you think they did this???
Reply With Quote
  #6 (permalink)  
Old January 7th, 2005, 03:35 AM
joefawcett's Avatar
Wrox Author
Points: 9,712, Level: 42
Points: 9,712, Level: 42 Points: 9,712, Level: 42 Points: 9,712, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,066
Thanks: 1
Thanked 36 Times in 35 Posts
Default

Which image? Trying to save the main car photo worked as expected.



--

Joe (Microsoft MVP - XML)
Reply With Quote
  #7 (permalink)  
Old January 7th, 2005, 10:08 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Quote:
quote:
you can just disable JavaScript or even crop a screen capture.
And there's always my favorite.. going directly to the browser cache.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
Reply With Quote
  #8 (permalink)  
Old January 7th, 2005, 10:03 PM
Friend of Wrox
 
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Avoid cross posting :( http://p2p.wrox.com/topic.asp?TOPIC_ID=24545

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
Reply With Quote
  #9 (permalink)  
Old January 9th, 2005, 12:44 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear joefawcett,
I am not talking about the main image but trying to download the js and mov files.
Example try: http://www.mitsucars.com/eclipse/exterior.mov

http://www.mitsucars.com/eclipse/ima...rior_thumb.gif

http://www.mitsucars.com/eclipse/js/snifferobj.js

Javascript works but I can't get to them.
How do you do this??


Reply With Quote
  #10 (permalink)  
Old January 9th, 2005, 12:45 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Alhambra, ca, USA.
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello richard.york,
What do you mean by going directly to the browser cache? How do you do this??
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
disable browser right click?? danielnixon HTML Code Clinic 1 May 19th, 2008 12:11 PM
disable right-click on FF and OP crmpicco Javascript 2 April 12th, 2006 03:02 AM
Disable Right-click for Save Image As... bekim Javascript How-To 5 January 7th, 2005 08:03 PM
Flash object: disable right click on it karib Flash (all versions) 4 April 25th, 2004 01:08 AM
disable right click for onMouseUp dhaywirex Classic ASP Basics 2 March 4th, 2004 04:22 AM



All times are GMT -4. The time now is 03:13 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.