Javascript not working in Firefox

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Oct 2005
Posts: 1
Reputation: Kayoss is an unknown quantity at this point 
Solved Threads: 0
Kayoss Kayoss is offline Offline
Newbie Poster

Javascript not working in Firefox

 
0
  #1
Oct 28th, 2005
Hello all! I have a javascript running on my site at http://www.kayoss.net that disables right clicking (viewing source, saving pictures, etc.) that works beautifully in IE...but not in Firefox. Does anyone know of a solution?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Javascript not working in Firefox

 
0
  #2
Oct 31st, 2005
1st, the script calls for an argument to be passed in, it appears to be the Event object, yet your call doesn't pass anything in.

Also, the script definition should properly be inside the head section. Lastly, it's a bad idea, in my opinion, to attempt to alter or change the user model.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 49
Reputation: felgall is an unknown quantity at this point 
Solved Threads: 1
felgall felgall is offline Offline
Light Poster

Re: Javascript not working in Firefox

 
0
  #3
Nov 6th, 2005
Disabling right click is done using a single statement.

<body oncontextmenu="return false;">

This works for both the mouse and the keyboard in all modern browsers except Opera (which doesn't allow you to block right click).
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 5
Reputation: ryansmith is an unknown quantity at this point 
Solved Threads: 0
ryansmith ryansmith is offline Offline
Newbie Poster

Re: Javascript not working in Firefox

 
0
  #4
May 13th, 2009
It is a known problem that that Javascript will behave different with various browsers. On of the way is to use javascript that is generally accepted by W3 standards. If some functions still do not work, try hiding the script from that browser to avoid any errors.

Thank you,
Ryan
[url snipped]
Last edited by Ezzaral; May 13th, 2009 at 1:31 pm. Reason: Snipped url. Please do not post "fake" sig links in a message. You can create a user signature in the control panel.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 217
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 32
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: Javascript not working in Firefox

 
0
  #5
May 17th, 2009
HI,
You can try with my below post. Hope it will help you.
http://shawpnendu.blogspot.com/2009/...lickimage.html
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC